|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.device.Control
org.eclipse.soda.dk.wire.Wire
public class Wire
The Wire class implements the MeasurementListener interface.
Control,
CommandListener,
ControlService,
ErrorListener,
MeasurementListener,
MessageHandler,
SignalListener,
TransformService| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.device.Control |
|---|
EXCEPTION_READ_FAILED_RESOURCE, SETVALUEEXCEPTION_RESOURCE |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Constructor Summary | |
|---|---|
Wire(java.lang.String key,
ControlService source,
ControlService target,
TransformService transform)
Constructs an Wire object using the input parameter(s). |
|
| Method Summary | |
|---|---|
void |
addSourceListener(ControlService source)
Adds the specified listener to receive listener notification. |
void |
commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
This method is fired to all Listeners each time the command is executed. |
void |
execute(java.lang.Object data)
Perform the execute action method. |
ControlService |
getSource()
Gets the ControlService source property value. |
ControlService |
getTarget()
Gets the ControlService target property value. |
TransformService |
getTransform()
Gets the transform (TransformService) value. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
This method is fired to all Listeners each time the value of the measurement changes. |
protected void |
setSource(ControlService source)
Sets the source property. |
protected void |
setTarget(ControlService target)
Sets the target property. |
void |
setTransform(TransformService transform)
Sets the transform value. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
This method is fired to all Listeners each time the signal triggerred. |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
attemptRecoveryFromError, equalsValue, errorOccurred, getCodeKey, getErrorSeverity, getKey, getQualifiedKey, getResource, setKey, setQualifiedKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Constructor Detail |
|---|
public Wire(java.lang.String key,
ControlService source,
ControlService target,
TransformService transform)
Wire object using the input parameter(s).
key - java.lang.Stringsource - org.eclipse.soda.dk.device.service.ControlServicetarget - org.eclipse.soda.dk.device.service.ControlServicetransform - org.eclipse.soda.dk.transform.service.TransformService| Method Detail |
|---|
public void addSourceListener(ControlService source)
source - The org.eclipse.soda.dk.device.service.ControlService listener to be added.
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
commandExecuted in interface CommandListenersource - CommandService which was executed.timestamp - The time at which the command execution was detected.data - Any data which was contained within the command.public void execute(java.lang.Object data)
data - java.lang.Objectpublic ControlService getSource()
ControlService source property value.
ControlService) value.setSource(ControlService)public ControlService getTarget()
ControlService target property value.
ControlService) value.setTarget(ControlService)public TransformService getTransform()
TransformService) value.setTransform(TransformService)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MeasurementListenersource - MeasurementService which changed.timestamp - The time at which the value change was detected.newValue - The new value of the MeasurementService.oldValue - The old value of the MeasurementService.protected void setSource(ControlService source)
source - The new property value (org.eclipse.soda.dk.device.service.ControlService).getSource()protected void setTarget(ControlService target)
target - The new property value (org.eclipse.soda.dk.device.service.ControlService).getTarget()public void setTransform(TransformService transform)
transform - The transform (TransformService) parameter.getTransform()
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
signalOccurred in interface SignalListenersource - The SignalService which fired.timestamp - The time at which the signal was detected.data - Contains any data which was contained within the signal.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||