brahms.communication
Class CreateCommunicativeActActivity
java.lang.Object
gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity
brahms.communication.CreateCommunicativeActActivity
- All Implemented Interfaces:
- IExternalActivity
public class CreateCommunicativeActActivity
- extends AbstractExternalActivity
The CreateCommunicativeActActivity creates a new CommunicativeAct object with
the specified sender, receiver, subject, action, performative
and replyTo agent. It stores the beliefs about these attributes in the
CommunicativeAct's 'envelope' and 'payload' maps.
This activity requires seven parameters in the Brahms java activity
declaration:
- ActiveInstance plSender (the sender of the communicative act)
- ActiveInstance plReceiver (the receiver of the communicative act)
- ActiveInstance plReplyTo (optional, the agent to reply to, set to the sender if unknown)
- symbol plPerformative (the FIPA communicative act type)
- string plConversationID (optional, the conversation id to use, one will be generated if not specified)
- symbol plAction (the message action)
- symbol plSubject (the subject of the message)
- CommunicativeAct communicativeAct (a variable to store the created CommunicativeAct)
- Version:
- $Revision: 1.1 $ $Date: 2007/10/10 14:02:58 $ $Author: rvhoof $
- Author:
- Mike Scott
|
Field Summary |
static org.apache.log4j.Logger |
LOGGER
|
|
Method Summary |
void |
doActivity()
Executes the java activity action. |
| Methods inherited from class gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity |
assertBelief, assertFact, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, getContext, getModel, getName, getParameter, getParameterCount, getPerformedBy, getVMController, getWorldState, isValidTruthValue, retractBelief, retractFact, send, send, send, send, setActivity, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOGGER
public static final org.apache.log4j.Logger LOGGER
CreateCommunicativeActActivity
public CreateCommunicativeActActivity()
doActivity
public void doActivity()
throws ExternalException
- Executes the java activity action.
- Specified by:
doActivity in interface IExternalActivity- Specified by:
doActivity in class AbstractExternalActivity
- Throws:
ExternalException - if an unrecoverable error occurs.
Copyright © 1997-2008 NASA. All Rights Reserved.