Magentix2
2.1.1
|
Classes | |
class | BEGIN_Method |
class | FINAL_Method |
class | QUERY_Method |
class | RECEIVE_Method |
Public Member Functions | |
CFactory | newFactory (String name, MessageFilter filter, int availableConversations, CAgent myAgent, ArrayList< String > messageContent, String jasonAgentName, ArrayList< String > result) |
Protected Member Functions | |
void | doBegin (CProcessor myProcessor, ACLMessage msg) |
void | doQuery (CProcessor myProcessor, ACLMessage msg) |
void | doReceive (CProcessor myProcessor, ACLMessage msg) |
void | doFinal (CProcessor myProcessor, ACLMessage msg) |
Definition at line 25 of file Normative_Protocol.java.
void es.upv.dsic.gti_ia.norms.Normative_Protocol.doBegin | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Definition at line 103 of file Normative_Protocol.java.
{ }
void es.upv.dsic.gti_ia.norms.Normative_Protocol.doFinal | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Definition at line 174 of file Normative_Protocol.java.
{ }
void es.upv.dsic.gti_ia.norms.Normative_Protocol.doQuery | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Definition at line 115 of file Normative_Protocol.java.
{ }
void es.upv.dsic.gti_ia.norms.Normative_Protocol.doReceive | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Definition at line 155 of file Normative_Protocol.java.
{ }
CFactory es.upv.dsic.gti_ia.norms.Normative_Protocol.newFactory | ( | String | name, |
MessageFilter | filter, | ||
int | availableConversations, | ||
CAgent | myAgent, | ||
ArrayList< String > | messageContent, | ||
String | jasonAgentName, | ||
ArrayList< String > | result | ||
) |
Definition at line 31 of file Normative_Protocol.java.
{ this.messageContent = messageContent; this.jasonAgentName = jasonAgentName; this.result = result; //----------------------------wait STATE---------------------------------- WaitState WAIT = new WaitState("WAIT", 0); //------------------------------------------------------------------------ //-----------------------Initiator CFactory definition------------------ //------------------------------------------------------------------------ CFactory theFactory = new CFactory(name, filter, availableConversations, myAgent); //----------------------------BEGIN STATE---------------------------------- BeginState BEGIN = (BeginState) theFactory.cProcessorTemplate().getState("BEGIN"); BEGIN.setMethod(new BEGIN_Method()); //----------------------------QUERY STATE---------------------------------- SendState QUERY = new SendState("QUERY"); QUERY.setMethod(new QUERY_Method()); theFactory.cProcessorTemplate().registerState(QUERY); theFactory.cProcessorTemplate().addTransition(BEGIN, QUERY); //----------------------------WAIT STATE---------------------------------- theFactory.cProcessorTemplate().registerState(WAIT); theFactory.cProcessorTemplate().addTransition(QUERY, WAIT); //----------------------------RECEIVE STATE---------------------------------- ReceiveState RECEIVE = new ReceiveState("RECEIVE"); RECEIVE.setAcceptFilter(null); // null -> accept any message RECEIVE.setMethod(new RECEIVE_Method()); theFactory.cProcessorTemplate().registerState(RECEIVE); theFactory.cProcessorTemplate().addTransition(WAIT, RECEIVE); //----------------------------FINAL STATE---------------------------------- FinalState FINAL = new FinalState("FINAL"); FINAL.setMethod(new FINAL_Method()); theFactory.cProcessorTemplate().registerState(FINAL); theFactory.cProcessorTemplate().addTransition(RECEIVE, FINAL); return theFactory; }