Magentix2
2.1.1
|
Protected Member Functions | |
int | run (ACLMessage exceptionMessage, String next) |
String | getNext (String previousState) |
Package Attributes | |
String | nextState |
This class manages the unexpected messages that arrive to an state. The messages with locutions FINISHDIALOGUE and DIE are not expected in any state, this is because we prefer to manage and change the behaviour of the agent in any WAIT state where these messages can be received.
Definition at line 383 of file Argumentation_Participant.java.
String es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2.getNext | ( | String | previousState | ) | [protected, virtual] |
Implements es.upv.dsic.gti_ia.cAgents.NotAcceptedMessagesState.
Definition at line 406 of file Argumentation_Participant.java.
int es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2.run | ( | ACLMessage | exceptionMessage, |
String | next | ||
) | [protected, virtual] |
Implements es.upv.dsic.gti_ia.cAgents.NotAcceptedMessagesState.
Definition at line 388 of file Argumentation_Participant.java.
{ if(exceptionMessage.getHeaderValue(LOCUTION).equalsIgnoreCase(FINISHDIALOGUE)){ nextState="FINISH"; return NotAcceptedMessagesState.IGNORE; } else if(exceptionMessage.getHeaderValue(LOCUTION).equalsIgnoreCase(DIE)){ nextState="DIE"; return NotAcceptedMessagesState.IGNORE; } else{ nextState="SAME"; return NotAcceptedMessagesState.IGNORE; } }
String es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2.nextState [package] |
Definition at line 385 of file Argumentation_Participant.java.