EASE.Agents.Specification
Class Agent
java.lang.Object
|
+--EASE.Agents.Specification.Agent
- public class Agent
- extends java.lang.Object
This class defines an agent for the purposes of
the agent specification system.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
type
private java.lang.String type
name
private java.lang.String name
priority
private int priority
sm
private SMPanel sm
exportContract
private ExportContract exportContract
saveable
private AgentSave saveable
previous
private Agent previous
successor
private Agent successor
listeners
private java.util.Vector listeners
Agent
public Agent(java.lang.String name,
java.lang.String type,
int priority,
ExportContract ec,
SMPanel sm)
Agent
public Agent(java.lang.String name,
java.lang.String type,
int priority,
ExportContract ec,
SMPanel sm,
Agent previous)
Agent
public Agent(AgentSave as)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
toSaveable
public AgentSave toSaveable()
getActivation
public CellReference getActivation()
getStates
public java.util.Vector getStates()
getTransitions
public java.util.Vector getTransitions()
getParameters
public java.util.Vector getParameters()
- Returns a vector containing all the parameters of the agent
Returns null rather than an empty vector.
getType
public java.lang.String getType()
getName
public java.lang.String getName()
getPriority
public int getPriority()
getSM
public SMPanel getSM()
getExportContract
public ExportContract getExportContract()
setSuccessor
public void setSuccessor(Agent succ)
getSuccessor
public Agent getSuccessor()
getNewestSuccessor
public Agent getNewestSuccessor()
- Returns the newest version of this agent
or self if there is no succesor.
addListener
public void addListener(AgentChangeListener acl)
removeListener
public void removeListener(AgentChangeListener acl)
notifyChange
private void notifyChange()