Magentix2  2.1.1
es.upv.dsic.gti_ia.cAgents.State Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.cAgents.State:

List of all members.

Public Member Functions

String getName ()

Protected Member Functions

 State (String n)
void setType (int t)
void setName (String name)
Object clone ()

Package Functions

int getType ()

Package Attributes

int type

Static Package Attributes

static final int ACTION = 0
static final int BEGIN = 1
static final int FINAL = 2
static final int RECEIVE = 3
static final int SEND = 4
static final int WAIT = 5
static final int SENDING_ERRORS = 6
static final int CANCEL = 7
static final int TERMINATED_FATHER = 8
static final int NOT_ACCEPTED_MESSAGES = 9
static final int SHUTDOWN = 10

Detailed Description

This is the generic state class. All other state classes extend this one

Author:
Ricard Lopez Fogues

Definition at line 9 of file State.java.


Constructor & Destructor Documentation

es.upv.dsic.gti_ia.cAgents.State.State ( String  n) [protected]

Creates a new state

Parameters:
nname of the state

Definition at line 34 of file State.java.

                                  {
                name = n;
        }

Member Function Documentation

Definition at line 70 of file State.java.

                                 {
                Object obj = null;
                try {
                        obj = super.clone();
                } catch (CloneNotSupportedException e) {
                        e.printStackTrace();
                }
                return obj;
        }

Returns this state's name

Returns:
this state's name

Definition at line 42 of file State.java.

                                {
                return name;
        }

Returns this state's type

Returns:
this state's type

Definition at line 50 of file State.java.

                      {
                return type;
        }
void es.upv.dsic.gti_ia.cAgents.State.setName ( String  name) [protected]

Sets this state's name

Parameters:
nameof the state

Definition at line 66 of file State.java.

                                            {
                this.name = name;
        }
void es.upv.dsic.gti_ia.cAgents.State.setType ( int  t) [protected]

Sets this state's type

Parameters:
ttype of the state

Definition at line 58 of file State.java.

                                      {
                type = t;
        }

Member Data Documentation

final int es.upv.dsic.gti_ia.cAgents.State.ACTION = 0 [static, package]

Definition at line 14 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.BEGIN = 1 [static, package]

Definition at line 15 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.CANCEL = 7 [static, package]

Definition at line 21 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.FINAL = 2 [static, package]

Definition at line 16 of file State.java.

Definition at line 23 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.RECEIVE = 3 [static, package]

Definition at line 17 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.SEND = 4 [static, package]

Definition at line 18 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.SENDING_ERRORS = 6 [static, package]

Definition at line 20 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.SHUTDOWN = 10 [static, package]

Definition at line 24 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.TERMINATED_FATHER = 8 [static, package]

Definition at line 22 of file State.java.

Definition at line 26 of file State.java.

final int es.upv.dsic.gti_ia.cAgents.State.WAIT = 5 [static, package]

Definition at line 19 of file State.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables