Magentix2  2.1.1
es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2 Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2:
Collaboration diagram for es.upv.dsic.gti_ia.cAgents.protocols.Argumentation_Participant.NotAcceptedMessagesState2:

List of all members.

Protected Member Functions

int run (ACLMessage exceptionMessage, String next)
String getNext (String previousState)

Package Attributes

String nextState

Detailed Description

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.


Member Function Documentation

Implements es.upv.dsic.gti_ia.cAgents.NotAcceptedMessagesState.

Definition at line 406 of file Argumentation_Participant.java.

                                                               {
                        
                        if(nextState.equalsIgnoreCase("FINISH")){
                                if(previousState.equalsIgnoreCase("WAIT_OPEN")){
                                        return "WAIT_OPEN";
                                }
                                else{
                                        return "SEND_POSITION";
                                }
                        }
                        else if(nextState.equalsIgnoreCase("DIE")){
                                return "DIE";
                        }
                        else{
                                return previousState;
                        }
                        
                }
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;
                        }
                                                
                }

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables