|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EASE.Agents.Engine.GenericAgent
Field Summary | |
private java.util.Vector |
changeListeners
|
protected EnvironmentImport |
environmentImport
|
protected double |
intrinsicPriority
|
protected java.lang.String |
name
|
protected java.util.Vector |
params
|
protected StateMachine |
stateMachine
|
private GenericAgent |
successor
|
Constructor Summary | |
GenericAgent(java.lang.String name,
StateMachine stateMachine,
EnvironmentImport envImport,
double intrinsicPriority)
|
Method Summary | |
void |
addChangeListener(InstantiatedAgent cl)
Instantiated agents register here so they can be informed of any changes in the generic agent. |
void |
addParams(java.util.Vector p)
Add some parameters instantiated at the generic agent level. |
void |
changeAgent(GenericAgent changed)
This is called by the change management system to add a new version of the generic agent. |
InstantiatedSM |
getInstantiatedSM()
Get the instantiated state machine for this agent. |
ListSensorData |
getListType()
Returns an InputListType if there is one for this generic agent or null otherwise. |
java.lang.String |
getName()
Name |
java.util.Vector |
getParams()
Returns the list of parameters instantiated at generic agent level Note these parameters are for the condition system not for other agents |
GenericAgent |
getSuccessor()
This is called by the instantiated agent to get the new version of the agent. |
double |
priority(java.util.Hashtable params)
This function returns the aspects of the agents priority that are common to all instantiations. |
double |
priorityTrace(java.util.Hashtable params,
java.lang.StringBuffer sb)
|
java.lang.String |
toString()
Display purposes |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector changeListeners
private GenericAgent successor
protected double intrinsicPriority
protected EnvironmentImport environmentImport
protected StateMachine stateMachine
protected java.lang.String name
protected java.util.Vector params
Constructor Detail |
public GenericAgent(java.lang.String name, StateMachine stateMachine, EnvironmentImport envImport, double intrinsicPriority)
Method Detail |
public double priority(java.util.Hashtable params)
The parameters passed in are those specific to an instantiation.
public double priorityTrace(java.util.Hashtable params, java.lang.StringBuffer sb)
public InstantiatedSM getInstantiatedSM()
public java.lang.String getName()
public java.lang.String toString()
public void addParams(java.util.Vector p)
public java.util.Vector getParams()
public ListSensorData getListType()
All the functions that this accesses assume that there is only one InputListType for the agent. This will not usually be true. What is required to be true is that there is only one different type. Then this function works because it gives that type.
public void addChangeListener(InstantiatedAgent cl)
Once they are notified of the change they can use getNewVersion () to get the changed version of the agent.
public void changeAgent(GenericAgent changed)
public GenericAgent getSuccessor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |