java.lang.Runnablepublic abstract class RemoteAirCompetency
extends cmion.level2.RemoteCompetency
| Modifier | Constructor | Description |
|---|---|---|
protected |
RemoteAirCompetency(cmion.architecture.IArchitecture architecture,
java.lang.String name,
java.lang.String hostName,
int port,
java.lang.String whiteBoard,
java.lang.String[] sendMsgTypes,
java.lang.String[] rcvMsgTypes) |
Create a new air competency
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize() |
initializes the Air Plug
|
protected abstract void |
processMessage(java.lang.String message,
java.lang.String type) |
this method will be invoked in parallel with processMessage(String message), whenever a
new message is received.
|
protected void |
sendMessage(java.lang.String message) |
use this method to send a message to the remotely connected Psyclone framework.
|
protected void |
sendMessage(java.lang.String message,
java.lang.String msgType) |
use this method to send a message of a particular type to the remotely connected Psyclone framework
|
getArchitecture, isConnected, onDestroy, raisecancel, getCompetencyName, getCompetencyType, isAvailable, isRunning, registerHandlers, requestStartCompetency, run, runsInBackground, setAdditionalDatadestroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyedprotected RemoteAirCompetency(cmion.architecture.IArchitecture architecture,
java.lang.String name,
java.lang.String hostName,
int port,
java.lang.String whiteBoard,
java.lang.String[] sendMsgTypes,
java.lang.String[] rcvMsgTypes)
architecture - a reference to the architecturename - the name we use to identify ourselves in the PsyClone frameworkhostName - the name of the host we want to connect to (the machine that runs the psyclone framework)port - the port we use for connectingwhiteBoard - the white board we are connecting tosendMsgTypes - the types of the messages that we are sendingrcvMsgTypes - the types of the messages that we are receivingprotected void sendMessage(java.lang.String message)
sendMessage in class cmion.level2.RemoteCompetencyprotected void sendMessage(java.lang.String message,
java.lang.String msgType)
protected abstract void processMessage(java.lang.String message,
java.lang.String type)
public void initialize()
initialize in class cmion.level2.Competency