public class NetworkProtocol
extends java.lang.Object
Command | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
<config> ... </config> | Transmits information concerning configuration parameters in the
following subelements:
The configuration can be done in the following way: <config>
|
||||||||
<startTraining /> | Commands the application to start the training phase. For compatibility reasons the deprecated command <baselineStart /> is still working. Calling <startTraining /> or <baselineStart /> is only possible if xAffect is fully configured. | ||||||||
<startMeasuring /> | Commands the application to start the measuring phase. For compatibility reasons the deprecated command <baselineStop /> is still working. Calling <startMeasuring /> or <baselineStop /> is only possible if xAffect is in it's training-state. | ||||||||
<stopMeasuring /> | Commands the application to stop measuring. Calling <stopMeasuring> is only possible if xAffect is in it's measuring phase. | ||||||||
<exit /> | Terminates xAffect. Calling <exit /> is possible at any time of xAffect's life-cycle. | ||||||||
<restart /> | Restarts xAffect. Calling <restart /> is only possible in
xAffect's STOPPED-state. On restarted, xAffect will expect the <config>-element once again. |
Constructor and Description |
---|
NetworkProtocol(LifeCycleManager manager)
Creates a new
NetworkProtocol , registering itself to
LifeCycleManager.registerStatusChangedListener(PropertyChangeListener)
. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
handshake() |
java.lang.String |
processInput(java.lang.String input)
Parses and handles input in the form of XML and reacts depending on
xAffect's
State |
public NetworkProtocol(LifeCycleManager manager)
NetworkProtocol
, registering itself to
LifeCycleManager.registerStatusChangedListener(PropertyChangeListener)
.public java.lang.String processInput(java.lang.String input)
State
input
- Commands in form of XML.NetworkProtocol}
public java.lang.String handshake()