|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.util.Amp
Field Summary | |
protected java.lang.String |
ampString
The AMP message in string form. |
protected java.lang.String |
content
The content of the message. |
protected java.lang.String |
force
Force indicator. |
protected java.lang.String |
inReplyTo
The ID of the message for which this message is a reply. |
protected java.lang.String |
language
The (computer) language in which the content is written. |
protected java.lang.String |
ontology
The semantics defining the meaning of terms in the content. |
protected java.lang.String |
performative
The AMP performative (command). |
protected java.lang.String |
receiver
The ID of the receiver of the message. |
protected java.lang.String |
replyWith
The reference message ID to be used in a subsequent reply. |
protected java.lang.String |
sender
The ID of the sender of the message. |
Constructor Summary | |
Amp()
Constructs an emply AMP message. |
|
Amp(java.lang.String ampString)
Constructs a AMP object given the Amp message string. |
Method Summary | |
java.lang.String |
ampString()
Returns the ampString. |
java.lang.String |
content()
Returns the content. |
Amp |
createReply()
Creates a trivial AMP reply message. |
java.lang.String |
force()
Returns the force. |
void |
generateAmpString()
Sets the AMP string according to the existing values of the performative parameters. |
java.lang.String |
inReplyTo()
Returns the inReplyTo. |
java.lang.String |
language()
Returns the language. |
java.lang.String |
ontology()
Returns the ontology. |
java.lang.String |
parseAmpPerformativeParameter(java.lang.String keyword)
Returns the performative parameter value for the argument. |
java.lang.String |
parsePerformative()
Returns the performative word in the AMP string. |
void |
parsePerformativeParameters()
Constructs a AMP object using the current Amp message string. |
static int |
parseSExpression(java.lang.String aString)
Returns an index indicating the end of the next symbolic expression substring. |
java.lang.String |
performative()
Returns the performative. |
java.lang.String |
receiver()
Returns the receiver. |
java.lang.String |
replyWith()
Returns the replyWith. |
java.lang.String |
sender()
Returns the sender. |
void |
setContent(java.lang.String content)
Sets the content. |
void |
setContentString(java.lang.String content)
Sets the content, wrapping it in quote delimiters. |
void |
setForce(java.lang.String force)
Sets the force. |
void |
setInReplyTo(java.lang.String inReplyTo)
Sets the inReplyTo. |
void |
setInReplyToString(java.lang.String inReplyTo)
Sets the inReplyTo, wrapping it in quote delimiters. |
void |
setLanguage(java.lang.String language)
Sets the language. |
void |
setOntology(java.lang.String ontology)
Sets the ontology. |
void |
setPerformative(java.lang.String performative)
Sets the performative. |
void |
setReceiver(java.lang.String receiver)
Sets the receiver. |
void |
setReplyWith(java.lang.String replyWith)
Sets the replyWith. |
void |
setSender(java.lang.String sender)
Sets the sender. |
static void |
test()
Test the methods of this class. |
java.lang.String |
toString()
Returns the AMP message string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String ampString
protected java.lang.String performative
protected java.lang.String sender
protected java.lang.String receiver
protected java.lang.String replyWith
protected java.lang.String inReplyTo
protected java.lang.String content
protected java.lang.String language
protected java.lang.String ontology
protected java.lang.String force
Constructor Detail |
public Amp(java.lang.String ampString)
ampString
- the Amp message stringpublic Amp()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void generateAmpString()
public java.lang.String ampString()
public java.lang.String performative()
public void setPerformative(java.lang.String performative)
performative
- the performativepublic java.lang.String sender()
public void setSender(java.lang.String sender)
sender
- the senderpublic java.lang.String receiver()
public void setReceiver(java.lang.String receiver)
receiver
- the receiverpublic java.lang.String replyWith()
public void setReplyWith(java.lang.String replyWith)
replyWith
- the replyWithpublic java.lang.String inReplyTo()
public void setInReplyToString(java.lang.String inReplyTo)
inReplyTo
- the inReplyTopublic void setInReplyTo(java.lang.String inReplyTo)
inReplyTo
- the inReplyTopublic java.lang.String content()
public void setContent(java.lang.String content)
content
- the contentpublic void setContentString(java.lang.String content)
content
- the contentpublic java.lang.String language()
public void setLanguage(java.lang.String language)
language
- the languagepublic java.lang.String ontology()
public void setOntology(java.lang.String ontology)
ontology
- the ontologypublic java.lang.String force()
public void setForce(java.lang.String force)
force
- the forcepublic Amp createReply()
public void parsePerformativeParameters()
public java.lang.String parsePerformative()
public java.lang.String parseAmpPerformativeParameter(java.lang.String keyword)
keyword
- the AMP keyword for which the value is soughtpublic static int parseSExpression(java.lang.String aString)
aString
- the input string containing a symbolic expressionpublic static void test()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |