es.upv.dsic.gti_ia.cAgents
Class State

java.lang.Object
  extended by es.upv.dsic.gti_ia.cAgents.State
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ActionState, BeginState, FinalState, NotAcceptedMessagesState, ReceiveState, SendState, TerminatedFatherState, WaitState

public abstract class State
extends Object
implements Cloneable

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

Author:
Ricard Lopez Fogues

Constructor Summary
protected State(String n)
          Creates a new state
 
Method Summary
protected  Object clone()
           
 String getName()
          Returns this state's name
protected  void setName(String name)
          Sets this state's name
protected  void setType(int t)
          Sets this state's type
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

protected State(String n)
Creates a new state

Parameters:
n - name of the state
Method Detail

getName

public String getName()
Returns this state's name

Returns:
this state's name

setType

protected void setType(int t)
Sets this state's type

Parameters:
t - type of the state

setName

protected void setName(String name)
Sets this state's name

Parameters:
name - of the state

clone

protected Object clone()
Overrides:
clone in class Object


Copyright © 2012 GTI-IA. All Rights Reserved.