|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOneShotBehaviour
teamSpace.agent.FailureBehaviour
This class handles any failure that occurs during the process of solving a problem in the team space. The behaviour sees trough that the requester of the TeamSpace service is informed about the failure. And a failure -message is sent as a resultnotification of the request.
Constructor Summary | |
FailureBehaviour(Agent ag,
DataStore dataStore,
Behaviour topBehaviour,
java.lang.String teamID)
The constructor only calls the super-constructor. |
Method Summary | |
void |
action()
The action method reports/specifies the failure, and returns a failure message to the TaskResponsible requesting for the TeamSpace. |
int |
onEnd()
The method resets this behaviour and returns the transition from this state (behaviour). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FailureBehaviour(Agent ag, DataStore dataStore, Behaviour topBehaviour, java.lang.String teamID)
ag
- The agent which get this behaviourdataStore
- The DataStore
used in this behaviourtopBehaviour
- A link to the Behaviour
which defines the request protocol that this behaviour is a part ofMethod Detail |
public void action()
TeamSpaceAgentBehaviour
.
public int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |