|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EASE.Agents.Engine.InstantiatedAgent | +--EASE.Agents.Engine.InstantiatedEngineer
An instantiated engineer agent.
Field Summary | |
private Debugger |
debugger
|
private boolean |
deregister
|
private java.util.Vector |
factories
|
private boolean |
first
|
private boolean |
killed
|
private java.util.Vector |
oldFactories
|
private boolean |
register
|
private GenericEngineer |
template
|
Fields inherited from class EASE.Agents.Engine.InstantiatedAgent |
listeners,
params,
parent,
parentPriority,
paused,
sensingEngine,
sm,
template,
userFailEnded,
userSuccessEnded |
Constructor Summary | |
InstantiatedEngineer(GenericEngineer template,
java.util.Hashtable params,
InstantiatedAgent parent)
|
Method Summary | |
java.util.Vector |
currentFactories()
|
java.lang.String |
deregisterWith()
|
void |
endContract()
Engineer specific contract breaking. |
boolean |
execute()
Engineer specific execution. |
private double |
getOutputSatisfaction(java.lang.String name,
java.lang.Object proposal)
|
private double |
getSatisfaction(java.lang.String name,
java.lang.Object proposal)
|
ProposeResult |
propose(java.lang.String name,
java.lang.Object proposal)
This form of propose is called when the factory is not checking output only the new suggestion. |
ProposeResult |
propose(java.lang.String name,
java.lang.Object proposal,
java.lang.Object previous)
Called by the factory to offer two suggestions, the first is a new proposal that the factory has come up with and the second is the previous best solution. |
java.lang.String |
registerWith()
This function is called by the agent controller to see if there are any factories that the agent wishes to be registered with. |
java.lang.StringBuffer |
satisfactionTrace(java.lang.String name,
java.lang.Object proposal)
Tracing |
boolean |
terminate()
If this function returns true the agent wants to be terminated. |
Methods inherited from class EASE.Agents.Engine.InstantiatedAgent |
addListener,
failing,
getName,
getParams,
getParent,
getState,
notifyAllChangeListeners,
notifyChange,
paused,
priority,
priorityTrace,
succeeded,
toString,
transitionTrace,
userEndContract,
userPause |
Methods inherited from class java.lang.Object |
|
Field Detail |
private GenericEngineer template
private java.util.Vector factories
private java.util.Vector oldFactories
private Debugger debugger
private boolean first
private boolean killed
private boolean register
private boolean deregister
Constructor Detail |
public InstantiatedEngineer(GenericEngineer template, java.util.Hashtable params, InstantiatedAgent parent)
Method Detail |
public java.lang.String registerWith()
Only allows registration with one factory at present.
public java.lang.String deregisterWith()
public boolean terminate()
Returning killed is only a temporary solution.
public ProposeResult propose(java.lang.String name, java.lang.Object proposal, java.lang.Object previous)
The name of the factory is passed as the first parameter so that the agent knows which suggestion it is dealing with.
public ProposeResult propose(java.lang.String name, java.lang.Object proposal)
private double getSatisfaction(java.lang.String name, java.lang.Object proposal)
private double getOutputSatisfaction(java.lang.String name, java.lang.Object proposal)
public java.lang.StringBuffer satisfactionTrace(java.lang.String name, java.lang.Object proposal)
public void endContract()
This does not get rid of the agent just stops it talking to factories.
public boolean execute()
Returns full if it has an action it wants to perform.
Killed is before first in order to get rid of some problems when agent is contracted and killed in the same step. More general sync problem remains.
public java.util.Vector currentFactories()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |