Magentix2
2.1.1
|
Public Member Functions | |
ACLMessage () | |
ACLMessage (int performative) | |
void | setPerformative (int performative) |
String | getPerformative () |
int | getPerformativeInt () |
void | setSender (AgentID sender) |
AgentID | getSender () |
void | setReceiver (AgentID receiver) |
AgentID | getReceiver () |
AgentID | getReceiver (int index) |
void | setReplyTo (AgentID reply) |
AgentID | getReplyTo () |
void | setContent (String cont) |
String | getContent () |
void | setLanguage (String lang) |
String | getLanguage () |
void | setEncoding (String encoding) |
String | getEncoding () |
void | setOntology (String ontology) |
String | getOntology () |
void | setProtocol (String protocol) |
String | getProtocol () |
void | setConversationId (String id) |
String | getConversationId () |
void | setReplyWith (String rw) |
String | getReplyWith () |
void | setInReplyTo (String irt) |
String | getInReplyTo () |
void | setReplyByDate (Date date) |
Date | getReplyByDate () |
String | getReplyBy () |
void | setPerformative (String performative) |
void | clearAllReceiver () |
int | addReceiver (AgentID r) |
ArrayList< AgentID > | getReceiverList () |
int | getTotalReceivers () |
synchronized ACLMessage | clone () |
ACLMessage | createReply () |
void | copyFromAsTemplate (ACLMessage msg) |
void | setHeader (String key, String value) |
String | getHeaderValue (String key) |
Map< String, String > | getHeaders () |
void | setContentObject (java.io.Serializable s) throws IOException |
void | setByteSequenceContent (byte[] content) |
byte[] | getByteSequenceContent () |
Object | getContentObject () |
String | toString () |
Map< String, String > | getExchangeHeaders () |
void | putExchangeHeader (String key, String value) |
String | getExchangeHeader (String key) |
boolean | equals (Object obj) |
Static Public Member Functions | |
static int | getPerformative (String perf) |
static String | getPerformative (int perf) |
static ACLMessage | fromString (String strMsg) |
Static Public Attributes | |
static final int | ACCEPT_PROPOSAL = 0 |
static final int | AGREE = 1 |
static final int | CANCEL = 2 |
static final int | CFP = 3 |
static final int | CONFIRM = 4 |
static final int | DISCONFIRM = 5 |
static final int | FAILURE = 6 |
static final int | INFORM = 7 |
static final int | INFORM_IF = 8 |
static final int | INFORM_REF = 9 |
static final int | NOT_UNDERSTOOD = 10 |
static final int | PROPOSE = 11 |
static final int | QUERY_IF = 12 |
static final int | QUERY_REF = 13 |
static final int | REFUSE = 14 |
static final int | REJECT_PROPOSAL = 15 |
static final int | REQUEST = 16 |
static final int | REQUEST_WHEN = 17 |
static final int | REQUEST_WHENEVER = 18 |
static final int | SUBSCRIBE = 19 |
static final int | PROXY = 20 |
static final int | PROPAGATE = 21 |
static final int | UNKNOWN = -1 |
Static Package Functions | |
[static initializer] |
This class represents a message sent between agents.
Definition at line 27 of file ACLMessage.java.
Empty constructor. The performative is set to UNKNOWN
Definition at line 181 of file ACLMessage.java.
{ performative = UNKNOWN; conversation_id = UUID.randomUUID().toString(); }
es.upv.dsic.gti_ia.core.ACLMessage.ACLMessage | ( | int | performative | ) |
Constructor for the class. Only sets the performative.
performative | The performative to be used in this message. |
Definition at line 191 of file ACLMessage.java.
{ this.performative = performative; conversation_id = UUID.randomUUID().toString(); }
es.upv.dsic.gti_ia.core.ACLMessage.[static initializer] | ( | ) | [static, package] |
Adds a receiver to the receivers list
receiver | AgentID of the receiver to be added. |
Definition at line 516 of file ACLMessage.java.
{ // Test if the agent exists, if it exists return -1 for (int i = 0; i < receiver.size(); i++) { if (receiver.get(i).name.equals(r.name) && receiver.get(i).host.equals(r.host) && receiver.get(i).port.equals(r.port) && receiver.get(i).protocol.equals(r.protocol)) { return -1; } } receiver.add(r); return 1; }
synchronized ACLMessage es.upv.dsic.gti_ia.core.ACLMessage.clone | ( | ) |
Clones Message
Definition at line 553 of file ACLMessage.java.
{ ACLMessage result; try { result = (ACLMessage) super.clone(); } catch (CloneNotSupportedException cnse) { throw new InternalError(); // This should never happen } return result; }
Copies the fields of the message to this one, when those fields have a correct value. If they don't, they are not copied.
msg | From which the fields are to be copied. |
Definition at line 600 of file ACLMessage.java.
{ if (msg.getPerformativeInt() != ACLMessage.UNKNOWN) { this.setPerformative(msg.getPerformativeInt()); } this.setSender(msg.getSender()); if (msg.getReceiverList() != null){ for(int i = 0; i<msg.getReceiverList().size();i++) this.addReceiver(msg.getReceiver(i)); } this.setReplyTo(msg.getReplyTo()); if (msg.getContent() != null) { this.setContent(msg.getContent()); } this.setLanguage(msg.getLanguage()); this.setEncoding(msg.getEncoding()); if (msg.getOntology() != null) { this.setOntology(msg.getOntology()); } if (msg.getProtocol() != null) { this.setProtocol(msg.getProtocol()); } if (msg.getConversationId() != null) { this.setConversationId(msg.getConversationId()); } this.setReplyWith(msg.getReplyWith()); this.setInReplyTo(msg.getInReplyTo()); this.setReplyByDate(msg.getReplyByDate()); Iterator<Entry<String, String>> it = this.headers.entrySet().iterator(); while (it.hasNext()) { Map.Entry<String, String> pairs = (Map.Entry<String, String>)it.next(); this.setHeader(String.valueOf(pairs.getKey()), String.valueOf(pairs.getValue())); } Map<String,String> headers = msg.getExchangeHeaders(); for (String key : headers.keySet()) { this.putExchangeHeader(key, headers.get(key)); } }
Creates an ACLMessage that is a reply to this one
Definition at line 571 of file ACLMessage.java.
{ ACLMessage m = (ACLMessage) clone(); m.clearAllReceiver(); m.setReceiver(getSender()); m.setLanguage(getLanguage()); m.setOntology(getOntology()); m.setProtocol(getProtocol()); m.setSender(null); m.setInReplyTo(getReplyWith()); m.setConversationId(getConversationId()); m.setReplyByDate(null); m.setContent(""); m.setEncoding(""); m.exchangeHeaders = new HashMap<String, String>(); // #CUSTOM_EXCLUDE_BEGIN // Set the Aclrepresentation of the reply message to the // aclrepresentation of the sent message // #CUSTOM_EXCLUDE_END return m; }
boolean es.upv.dsic.gti_ia.core.ACLMessage.equals | ( | Object | obj | ) |
Compares two ACLMessages
Message | The message to compare with |
Definition at line 1053 of file ACLMessage.java.
{ if ( obj == null ) return false; if ( this == obj ) return true; if ( ! (obj instanceof ACLMessage ) ) return false; ACLMessage mc = (ACLMessage) obj; if(!this.getPerformative().equals(mc.getPerformative())) return false; if(!this.getSender().toString().equals(mc.getSender().toString())) return false; if(!this.getReplyTo().toString().equals(mc.getReplyTo().toString())) return false; if(!this.getLanguage().equals(mc.getLanguage())) return false; if(!this.getEncoding().equals(mc.getEncoding())) return false; if(!this.getOntology().equals(mc.getOntology())) return false; if(!this.getProtocol().equals(mc.getProtocol())) return false; if(!this.getConversationId().equals(mc.getConversationId())) return false; if(!this.getReplyWith().equals(mc.getReplyWith())) return false; if(!this.getReplyBy().equals(mc.getReplyBy())) return false; if(!this.getInReplyTo().equals(mc.getInReplyTo())) return false; if(this.getReplyByDate() == null && mc.getReplyByDate() == null){ //Messages are equal }else{ if(!this.getReplyByDate().equals(mc.getReplyByDate())) return false; } //Compare byteSequenceContent, receivers, headers and exchangeHeaders //ByteSequence arrays should be totally equals (even in the order) byte [] msgBytes = this.getByteSequenceContent(); byte [] mcBytes = mc.getByteSequenceContent(); if(msgBytes.length != mcBytes.length)//check different length return false; for(int i = 0; i<mcBytes.length; i++)//check different content if(mcBytes[i] != msgBytes[i]) return false; //Receivers and headers should be equal but not necessary in order //use of set for efficiency Set<AgentID> setReceivers = new HashSet<AgentID>(this.getReceiverList()); Set<AgentID> setReceiversMc = new HashSet<AgentID>(mc.getReceiverList()); if(!setReceivers.equals(setReceiversMc)) return false; Set<Map.Entry<String,String>> setHeaders = this.getHeaders().entrySet(); Set<Map.Entry<String,String>> setHeadersMc = mc.getHeaders().entrySet(); if(!setHeaders.equals(setHeadersMc)) return false; Set<Map.Entry<String,String>> setExchangeHeaders = this.getExchangeHeaders().entrySet(); Set<Map.Entry<String,String>> setExchangeHeadersMc = mc.getExchangeHeaders().entrySet(); if(!setExchangeHeaders.equals(setExchangeHeadersMc)) return false; return true; }
static ACLMessage es.upv.dsic.gti_ia.core.ACLMessage.fromString | ( | String | strMsg | ) | [static] |
Parses the message given as a String and creates an object of type ACLMessage.
strMsg | String containing a serialization of an ACLMessage |
Definition at line 903 of file ACLMessage.java.
{ // Unserialize message content ACLMessage msg; int indice1 = 0; int indice2 = 0; int aidindice1 = 0; int aidindice2 = 0; int tam = 0; String aidString; indice2 = strMsg.indexOf('#', indice1); msg = new ACLMessage(Integer.parseInt(strMsg.substring(indice1, indice2))); // Unserialize different AgentID's (Sender, Receiver, ReplyTo) for (int i = 0; i < 3; i++) { AgentID aid = new AgentID(); aidindice1 = 0; aidindice2 = 0; indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); aidString = strMsg.substring(indice2 + 1, indice2 + 1 + tam); aidindice2 = aidString.indexOf(':'); if (aidindice2 - aidindice1 <= 0) aid.protocol = ""; else aid.protocol = aidString.substring(aidindice1, aidindice2); aidindice1 = aidindice2 + 3; aidindice2 = aidString.indexOf('@', aidindice1); if (aidindice2 - aidindice1 <= 0) aid.name = ""; else aid.name = aidString.substring(aidindice1, aidindice2); aidindice1 = aidindice2 + 1; aidindice2 = aidString.indexOf(':', aidindice1); if (aidindice2 - aidindice1 <= 0) aid.host = ""; else aid.host = aidString.substring(aidindice1, aidindice2); aid.port = aidString.substring(aidindice2 + 1); if (i == 0) msg.setSender(aid); if (i == 1) if(aid.protocol.equals("") && aid.name.equals("") && aid.host.equals("")) msg.clearAllReceiver(); //let receivers empty else msg.setReceiver(aid); if (i == 2) msg.setReplyTo(aid); } indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // language msg.setLanguage(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // encoding msg.setEncoding(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // ontologyencodingACLMessage template msg.setOntology(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // Protocol msg.setProtocol(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // Conversation id msg.setConversationId(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // Reply with msg.setReplyWith(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf("#", indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // In reply to msg.setInReplyTo(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // reply by if (tam != 0) msg.setReplyByDate(new Date(Integer.parseInt(strMsg.substring(indice2 + 10, indice2 + tam)))); indice1 = indice2 + 1 + tam; indice2 = strMsg.indexOf('#', indice1); tam = Integer.parseInt(strMsg.substring(indice1, indice2)); // Content msg.setContent(strMsg.substring(indice2 + 1, indice2 + 1 + tam)); return msg; }
Reads :content
slot.
:content
slot. Definition at line 752 of file ACLMessage.java.
{ if (content != null) { return new StringBuffer(content).toString().getBytes(); } else if (byteSequenceContent != null) return byteSequenceContent; return null; }
Gets the content of this message.
Definition at line 318 of file ACLMessage.java.
{
return content;
}
This method returns the content of this ACLMessage when they have been written via the method setContentObject
.
Definition at line 768 of file ACLMessage.java.
{ Object o = null; if(content != null && !content.equals("")) return (Object)content; else if(this.byteSequenceContent != null){ try{ byte[] data = getByteSequenceContent(); if (data == null) return null; ByteArrayInputStream bis = new ByteArrayInputStream(data); ObjectInputStream oin = new ObjectInputStream(bis); o = (java.io.Serializable)oin.readObject(); return o; } catch (java.lang.Error e) { e.printStackTrace(); } catch (IOException e1) { e1.printStackTrace(); } catch(ClassNotFoundException e2) { e2.printStackTrace(); } } return o; }
Gets the conversationID of this message.
Definition at line 415 of file ACLMessage.java.
{
return conversation_id;
}
Get the encoding for this message.
Definition at line 357 of file ACLMessage.java.
{
return encoding;
}
String es.upv.dsic.gti_ia.core.ACLMessage.getExchangeHeader | ( | String | key | ) |
Gets the value of a exchange header for this message.
key | The name of the exchange header |
Definition at line 1042 of file ACLMessage.java.
{
return this.exchangeHeaders.get(key);
}
Map<String, String> es.upv.dsic.gti_ia.core.ACLMessage.getExchangeHeaders | ( | ) |
Obtains the whole set of exchange headers in this message.
Definition at line 1021 of file ACLMessage.java.
{
return this.exchangeHeaders;
}
Map<String, String> es.upv.dsic.gti_ia.core.ACLMessage.getHeaders | ( | ) |
Obtains the whole set of headers in this message.
Definition at line 683 of file ACLMessage.java.
{
return headers;
}
String es.upv.dsic.gti_ia.core.ACLMessage.getHeaderValue | ( | String | key | ) |
Gets the value of a header for this message.
key | The name of the header |
Definition at line 671 of file ACLMessage.java.
{ if (headers.get(key) != null) return headers.get(key); else return ""; }
Gets the inReplyTo field of this message.
Definition at line 451 of file ACLMessage.java.
{
return in_reply_to;
}
Gets the language field.
Definition at line 338 of file ACLMessage.java.
{
return language;
}
Get the ontology for the message
Definition at line 377 of file ACLMessage.java.
{
return ontology;
}
Definition at line 210 of file ACLMessage.java.
{ try { if(performative == -1) return "UNKNOWN"; return performatives[performative]; } catch (Exception e) { return performatives[NOT_UNDERSTOOD]; } }
static int es.upv.dsic.gti_ia.core.ACLMessage.getPerformative | ( | String | perf | ) | [static] |
Returns the integer corresponding to the performative
Definition at line 726 of file ACLMessage.java.
{ String tmp = perf.toUpperCase(); for (int i=0; i<performatives.length; i++) if (performatives[i].equals(tmp)) return i; return -1; }
static String es.upv.dsic.gti_ia.core.ACLMessage.getPerformative | ( | int | perf | ) | [static] |
Returns the string corresponding to the integer for the performative
Definition at line 740 of file ACLMessage.java.
{ try { return performatives[perf]; } catch (Exception e) { return performatives[NOT_UNDERSTOOD]; } }
Definition at line 223 of file ACLMessage.java.
{
return performative;
}
Gets the protocol for the message
Definition at line 397 of file ACLMessage.java.
{
return protocol;
}
Obtains the AgentID of the first receiver of the (possibly many) receivers of this message.
Definition at line 265 of file ACLMessage.java.
{ if (receiver.isEmpty()) { return null; } else { return receiver.get(0); } }
AgentID es.upv.dsic.gti_ia.core.ACLMessage.getReceiver | ( | int | index | ) |
Returns receiver in index position in receivers list
index |
Definition at line 279 of file ACLMessage.java.
{
return receiver.get(index);
}
ArrayList<AgentID> es.upv.dsic.gti_ia.core.ACLMessage.getReceiverList | ( | ) |
Returns the whole list of the AgentID of the receivers.
Definition at line 535 of file ACLMessage.java.
{
return receiver;
}
Gets the replyBy field.
Definition at line 480 of file ACLMessage.java.
{ if (reply_byInMillisec != 0) return ISO8601.toString(new Date(reply_byInMillisec)); else return ""; }
Gets the replyByDate field for this message.
Definition at line 468 of file ACLMessage.java.
{ if (reply_byInMillisec != 0) return new Date(reply_byInMillisec); else return null; }
Gets the ReplyTo field
Definition at line 297 of file ACLMessage.java.
{
return reply_to;
}
Gets the replyWith field of this message.
Definition at line 433 of file ACLMessage.java.
{
return reply_with;
}
Returns the sender of this message.
Definition at line 244 of file ACLMessage.java.
{
return sender;
}
Gets the count of receivers of this message.
Definition at line 544 of file ACLMessage.java.
{
return receiver.size();
}
void es.upv.dsic.gti_ia.core.ACLMessage.putExchangeHeader | ( | String | key, |
String | value | ||
) |
Adds the value of a exchange header for this message.
key | The name of the exchange header |
value | The content for the exchange header |
Definition at line 1032 of file ACLMessage.java.
{ this.exchangeHeaders.put(key, value); }
void es.upv.dsic.gti_ia.core.ACLMessage.setByteSequenceContent | ( | byte[] | content | ) |
Sets the value of byte sequence content
byte | array to store |
Definition at line 717 of file ACLMessage.java.
{
this.content = null; //make to null the other variable
byteSequenceContent = content;
}
void es.upv.dsic.gti_ia.core.ACLMessage.setContent | ( | String | cont | ) |
Sets content field.
cont | .property name="content" |
Definition at line 307 of file ACLMessage.java.
{
byteSequenceContent = null; //make to null the other variable
content = cont;
}
void es.upv.dsic.gti_ia.core.ACLMessage.setContentObject | ( | java.io.Serializable | s | ) | throws IOException |
Sets the value of byte sequence content
serializable | object to store |
Definition at line 704 of file ACLMessage.java.
{ ByteArrayOutputStream c = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(c); oos.writeObject(s); oos.flush(); setByteSequenceContent(c.toByteArray()); }
void es.upv.dsic.gti_ia.core.ACLMessage.setConversationId | ( | String | id | ) |
Sets the conversationID of this message.
id | A String containing the conversationID to be set. |
Definition at line 406 of file ACLMessage.java.
{ conversation_id = id; }
void es.upv.dsic.gti_ia.core.ACLMessage.setEncoding | ( | String | encoding | ) |
Set encoding of the message
encoding | .property name="encoding" |
Definition at line 348 of file ACLMessage.java.
{ this.encoding = encoding; }
void es.upv.dsic.gti_ia.core.ACLMessage.setHeader | ( | String | key, |
String | value | ||
) |
Sets the value of a header for this message.
key | The name of the header |
value | The content for the header |
Definition at line 661 of file ACLMessage.java.
{ headers.put(key, value); }
void es.upv.dsic.gti_ia.core.ACLMessage.setInReplyTo | ( | String | irt | ) |
Sets the inReplyTo field of this message.
inReplyTo |
Definition at line 442 of file ACLMessage.java.
{ in_reply_to = irt; }
void es.upv.dsic.gti_ia.core.ACLMessage.setLanguage | ( | String | lang | ) |
Sets language field
lang | .property name="language" |
Definition at line 328 of file ACLMessage.java.
{ language = lang; }
void es.upv.dsic.gti_ia.core.ACLMessage.setOntology | ( | String | ontology | ) |
Set ontology of the message
ontology | .property name="ontology" |
Definition at line 367 of file ACLMessage.java.
{ this.ontology = ontology; }
void es.upv.dsic.gti_ia.core.ACLMessage.setPerformative | ( | int | performative | ) |
Sets performative type
performative | .property name="performative" |
Definition at line 202 of file ACLMessage.java.
{ this.performative = performative; }
void es.upv.dsic.gti_ia.core.ACLMessage.setPerformative | ( | String | performative | ) |
Sets the performative field in the message.
performative | Must contain a valid performative (e.g. INFORM) in order to be set. See the performatives in this class to notice which ones are valid. |
Definition at line 494 of file ACLMessage.java.
{ for (int i = 0; i < performatives.length; i++) { if (performative.compareTo(performatives[i]) == 0) { this.performative = i; break; } } }
void es.upv.dsic.gti_ia.core.ACLMessage.setProtocol | ( | String | protocol | ) |
Sets the protocol for the message
protocol | .property name="protocol" |
Definition at line 387 of file ACLMessage.java.
{ this.protocol = protocol; }
void es.upv.dsic.gti_ia.core.ACLMessage.setReceiver | ( | AgentID | receiver | ) |
Sets the receiver. It deletes the receivers list and creates a new one with the new receiver
receiver |
Definition at line 254 of file ACLMessage.java.
{ this.receiver.clear(); this.receiver.add(receiver); }
void es.upv.dsic.gti_ia.core.ACLMessage.setReplyByDate | ( | Date | date | ) |
Sets the replyByDate field for this message.
date | If the date is null, the current time and date is used. |
Definition at line 460 of file ACLMessage.java.
{ reply_byInMillisec = (date == null ? 0 : date.getTime()); }
void es.upv.dsic.gti_ia.core.ACLMessage.setReplyTo | ( | AgentID | reply | ) |
Sets ReplyTo field
reply |
Definition at line 288 of file ACLMessage.java.
{ reply_to = reply; }
void es.upv.dsic.gti_ia.core.ACLMessage.setReplyWith | ( | String | rw | ) |
Sets the replyWith field of this message.
replyWith |
Definition at line 424 of file ACLMessage.java.
{ reply_with = rw; }
void es.upv.dsic.gti_ia.core.ACLMessage.setSender | ( | AgentID | sender | ) |
Set sender
sender | The AgentID of the sender of this message. .property name="sender" |
Definition at line 234 of file ACLMessage.java.
{ this.sender = sender; }
String es.upv.dsic.gti_ia.core.ACLMessage.toString | ( | ) |
Serializes this message to a String, using all the fields in the message. The fields are separated using the char '#'
Definition at line 800 of file ACLMessage.java.
{ // Serialize message content String strMsg; // Performative strMsg = this.getPerformativeInt() + "#"; // Sender if (this.getSender() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getSender().toString().length() + "#" + this.getSender().toString(); } // receiver if (this.getReceiver() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getReceiver().toString().length() + "#" + this.getReceiver().toString(); } // reply to if (this.getReplyTo() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getReplyTo().toString().length() + "#" + this.getReplyTo().toString(); } // language if (this.getLanguage() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getLanguage().length() + "#" + this.getLanguage(); } // encoding if (this.getEncoding() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getEncoding().length() + "#" + this.getEncoding(); } // ontology if (this.getOntology() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getOntology().length() + "#" + this.getOntology(); } // protocol if (this.getProtocol() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getProtocol().length() + "#" + this.getProtocol(); } // conversation id if (this.getConversationId() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getConversationId().length() + "#" + this.getConversationId(); } // reply with if (this.getReplyWith() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getReplyWith().length() + "#" + this.getReplyWith(); } // in reply to if (this.getInReplyTo() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getInReplyTo().length() + "#" + this.getInReplyTo(); } // reply by strMsg = strMsg + this.getReplyBy().length() + "#" + this.getReplyBy(); // content if (this.getContent() == null){ strMsg = strMsg + "0#"; } else{ strMsg = strMsg + this.getContent().length() + "#" + this.getContent(); } return strMsg; }
final int es.upv.dsic.gti_ia.core.ACLMessage.ACCEPT_PROPOSAL = 0 [static] |
constant identifying the FIPA performative
Definition at line 35 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.AGREE = 1 [static] |
constant identifying the FIPA performative
Definition at line 37 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.CANCEL = 2 [static] |
constant identifying the FIPA performative
Definition at line 39 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.CFP = 3 [static] |
constant identifying the FIPA performative
Definition at line 41 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.CONFIRM = 4 [static] |
constant identifying the FIPA performative
Definition at line 43 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.DISCONFIRM = 5 [static] |
constant identifying the FIPA performative
Definition at line 45 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.FAILURE = 6 [static] |
constant identifying the FIPA performative
Definition at line 47 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.INFORM = 7 [static] |
constant identifying the FIPA performative
Definition at line 49 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.INFORM_IF = 8 [static] |
constant identifying the FIPA performative
Definition at line 51 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.INFORM_REF = 9 [static] |
constant identifying the FIPA performative
Definition at line 53 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.NOT_UNDERSTOOD = 10 [static] |
constant identifying the FIPA performative
Definition at line 55 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.PROPAGATE = 21 [static] |
constant identifying the FIPA performative
Definition at line 77 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.PROPOSE = 11 [static] |
constant identifying the FIPA performative
Definition at line 57 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.PROXY = 20 [static] |
constant identifying the FIPA performative
Definition at line 75 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.QUERY_IF = 12 [static] |
constant identifying the FIPA performative
Definition at line 59 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.QUERY_REF = 13 [static] |
constant identifying the FIPA performative
Definition at line 61 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.REFUSE = 14 [static] |
constant identifying the FIPA performative
Definition at line 63 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.REJECT_PROPOSAL = 15 [static] |
constant identifying the FIPA performative
Definition at line 65 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.REQUEST = 16 [static] |
constant identifying the FIPA performative
Definition at line 67 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.REQUEST_WHEN = 17 [static] |
constant identifying the FIPA performative
Definition at line 69 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.REQUEST_WHENEVER = 18 [static] |
constant identifying the FIPA performative
Definition at line 71 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.SUBSCRIBE = 19 [static] |
constant identifying the FIPA performative
Definition at line 73 of file ACLMessage.java.
final int es.upv.dsic.gti_ia.core.ACLMessage.UNKNOWN = -1 [static] |
constant identifying an unknown performative
Definition at line 79 of file ACLMessage.java.