|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.architecture.MessageTemplate
public class MessageTemplate
The class messageTemplate creates a new template to compare messages.
| Field Summary | |
|---|---|
static int |
ACCEPT_PROPOSAL
constant identifying the FIPA performative * |
static int |
AGREE
constant identifying the FIPA performative * |
static int |
CANCEL
constant identifying the FIPA performative * |
static int |
CFP
constant identifying the FIPA performative * |
static int |
CONFIRM
constant identifying the FIPA performative * |
static int |
DISCONFIRM
constant identifying the FIPA performative * |
static int |
FAILURE
constant identifying the FIPA performative * |
static int |
INFORM
constant identifying the FIPA performative * |
static int |
INFORM_IF
constant identifying the FIPA performative * |
static int |
INFORM_REF
constant identifying the FIPA performative * |
static int |
NOT_UNDERSTOOD
constant identifying the FIPA performative * |
static int |
PROPAGATE
constant identifying the FIPA performative * |
static int |
PROPOSE
constant identifying the FIPA performative * |
static int |
PROXY
constant identifying the FIPA performative * |
static int |
QUERY_IF
constant identifying the FIPA performative * |
static int |
QUERY_REF
constant identifying the FIPA performative * |
static int |
REFUSE
constant identifying the FIPA performative * |
static int |
REJECT_PROPOSAL
constant identifying the FIPA performative * |
static int |
REQUEST
constant identifying the FIPA performative * |
static int |
REQUEST_WHEN
constant identifying the FIPA performative * |
static int |
REQUEST_WHENEVER
constant identifying the FIPA performative * |
static int |
SUBSCRIBE
constant identifying the FIPA performative * |
static int |
UNKNOWN
constant identifying an unknown performative * |
| Constructor Summary | |
|---|---|
MessageTemplate(String iprotocol)
Creates a new MessageTemplate. |
|
| Method Summary | |
|---|---|
int |
add_receiver(AgentID a)
Adds a new receiver |
void |
addConversation(String conversacion)
Adds new conversation id in the list of conversations |
boolean |
deleteAllConversation()
Deletes all conversations in the list of conversations |
boolean |
deleteAllReceiver()
Deletes all receivers in the list of receivers |
void |
deleteConversation(String conversation)
Deletes a conversation id in the list of conversations |
boolean |
existReceiver(AgentID a)
Indicates if a receiver exists in the list of receivers |
String |
getContent()
|
String |
getConversationId()
|
String |
getEncoding()
|
String |
getInReplyTo()
|
String |
getLanguage()
|
ArrayList<String> |
getList_Conversation()
Returns Conversations list |
String |
getOntology()
|
String |
getPerformative()
|
int |
getPerformativeInt()
|
String |
getProtocol()
|
ArrayList<AgentID> |
getReceiver_list()
Returns Receiver list |
AgentID |
getReceiver()
|
String |
getReplyBy()
|
Date |
getReplyByDate()
|
AgentID |
getReplyTo()
|
String |
getReplyWith()
|
AgentID |
getSender()
|
void |
setContent(String cont)
|
void |
setConversationId(String id)
|
void |
setEncoding(String encoding)
|
void |
setInReplyTo(String irt)
|
void |
setLanguage(String lang)
|
void |
setOntology(String ontology)
|
void |
setPerformative(int performative)
Sets a new performative |
void |
setPerformative(String performative)
Sets a new performative |
void |
setProtocol(String protocol)
|
void |
setReceiver_list(ArrayList<AgentID> receiver_list)
Sets a new receiver list |
void |
setReceiver(AgentID receiver)
|
void |
setReplyByDate(Date date)
|
void |
setReplyTo(AgentID reply)
|
void |
setReplyWith(String rw)
|
void |
setSender(AgentID sender)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACCEPT_PROPOSAL
public static final int AGREE
public static final int CANCEL
public static final int CFP
public static final int CONFIRM
public static final int DISCONFIRM
public static final int FAILURE
public static final int INFORM
public static final int INFORM_IF
public static final int INFORM_REF
public static final int NOT_UNDERSTOOD
public static final int PROPOSE
public static final int QUERY_IF
public static final int QUERY_REF
public static final int REFUSE
public static final int REJECT_PROPOSAL
public static final int REQUEST
public static final int REQUEST_WHEN
public static final int REQUEST_WHENEVER
public static final int SUBSCRIBE
public static final int PROXY
public static final int PROPAGATE
public static final int UNKNOWN
| Constructor Detail |
|---|
public MessageTemplate(String iprotocol)
iprotocol - | Method Detail |
|---|
public ArrayList<String> getList_Conversation()
public void addConversation(String conversacion)
conversacion - public boolean deleteAllConversation()
public void deleteConversation(String conversation)
conversacion - public int add_receiver(AgentID a)
a - AgentID
public boolean existReceiver(AgentID a)
a - AgentID
public boolean deleteAllReceiver()
public ArrayList<AgentID> getReceiver_list()
public void setReceiver_list(ArrayList<AgentID> receiver_list)
receiver_list - public void setPerformative(int performative)
performative - public void setPerformative(String performative)
performative - public String getPerformative()
public int getPerformativeInt()
public void setSender(AgentID sender)
sender - public AgentID getSender()
public void setReceiver(AgentID receiver)
receiver - public AgentID getReceiver()
public void setReplyTo(AgentID reply)
reply - public AgentID getReplyTo()
public void setContent(String cont)
content - public String getContent()
public void setLanguage(String lang)
language - public String getLanguage()
public void setEncoding(String encoding)
encoding - public String getEncoding()
public void setOntology(String ontology)
ontology - public String getOntology()
public void setProtocol(String protocol)
protocol - public String getProtocol()
public void setConversationId(String id)
conversation - idpublic String getConversationId()
public void setReplyWith(String rw)
reply - withpublic String getReplyWith()
public void setInReplyTo(String irt)
irt - in reply topublic String getInReplyTo()
public void setReplyByDate(Date date)
date - public String getReplyBy()
public Date getReplyByDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||