java.lang.RunnableRemoteTCPCompetencypublic abstract class RemoteCompetency extends Competency
architectureavailable, competencyName, competencyType, plan, running| Modifier | Constructor | Description |
|---|---|---|
protected |
RemoteCompetency(IArchitecture architecture) |
call this constructor from subclasses
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
competencyCode(java.util.HashMap<java.lang.String,java.lang.String> parameters) |
the code that is executed when the competency is started
|
protected abstract void |
processMessage(java.lang.String message) |
this method will be called whenever a message is received from the remote
competency, if the message gives an indication about failure or success of
the remote competency than returnSuccess or returnFailure should be called
at the end of this method
|
protected void |
returnFailure() |
this should be called from the processMessage function whenever the competency has
returned unsuccessfully
|
protected void |
returnSuccess() |
this should be called from the processMessage function whenever the competency has
returned successfully
|
protected abstract void |
sendMessage(java.lang.String message) |
this method should not be implemented by a competency but by a direct subclass
e.g.
|
protected abstract void |
startExecution(java.util.HashMap<java.lang.String,java.lang.String> parameters) |
this method will be called when execution of the competency is invoked,
in here a command should be sent over the socket, starting the competency
remotely
|
getArchitecture, isConnected, onDestroy, raisecancel, getCompetencyName, getCompetencyType, initialize, isAvailable, isRunning, registerHandlers, requestStartCompetency, run, runsInBackground, setAdditionalDataprotected RemoteCompetency(IArchitecture architecture)
protected final boolean competencyCode(java.util.HashMap<java.lang.String,java.lang.String> parameters)
competencyCode in class Competencyparameters - a map including running parameters and their valuesprotected abstract void startExecution(java.util.HashMap<java.lang.String,java.lang.String> parameters)
protected abstract void processMessage(java.lang.String message)
protected abstract void sendMessage(java.lang.String message)
protected final void returnSuccess()
protected final void returnFailure()