|
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.device.Container
org.eclipse.soda.dk.device.Device
org.eclipse.soda.dk.profile.Profile
public class Profile
| Field Summary | |
|---|---|
protected DeviceService |
device
Define the device (DeviceService) field. |
| Fields inherited from class org.eclipse.soda.dk.device.Device |
|---|
POLL_COMMAND_NAME, START_COMMAND_NAME, STARTED_MASK, STOP_COMMAND_NAME |
| 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 |
| Fields inherited from interface org.eclipse.soda.dk.profile.service.ProfileService |
|---|
ACTIVE, ALIVE, Capabilities, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CAPABILITIES_READ_EXTERNAL_KEY, CAPABILITIES_WRITE_EXTERNAL_KEY, Configuration, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, CONFIGURATION_READ_EXTERNAL_KEY, CONFIGURATION_WRITE_EXTERNAL_KEY, CONNECTED, CREATED, DEAD, SERVICE_NAME, STARTED, STATE_DATA_KEY, STATE_OLD_DATA_KEY, Status, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, STATUS_READ_EXTERNAL_KEY, STATUS_WRITE_EXTERNAL_KEY |
| Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceListener |
|---|
ADDED, CHANGED, REMOVED |
| Constructor Summary | |
|---|---|
|
Profile()
Constructs an instance of this class. |
protected |
Profile(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
Constructs an instance of this class from the specified capabilities, status and configuration parameters. |
| Method Summary | |
|---|---|
void |
commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
Command executed with the specified source, timestamp and data parameters. |
void |
controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
Control changed with the specified device, timestamp, control and code parameters. |
void |
deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
Device changed with the specified source, timestamp, new state and old state parameters. |
void |
deviceChangedCustom(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
Device changed custom with the specified source, timestamp, new state and old state parameters. |
void |
exit()
Exit. |
java.lang.Boolean |
getBooleanValue(java.lang.Object value)
Get boolean value with the specified value parameter and return the Boolean result. |
DeviceService |
getDefaultDevice()
Gets the default device (DeviceService) value. |
java.lang.String |
getDefaultKey()
Gets the default key (String) value. |
DeviceService |
getDevice()
Gets the device (DeviceService) value. |
java.lang.Object |
getLogDetails6()
Gets the log details6 (Object) value. |
java.lang.Long |
getLongValue(java.lang.Object value)
Get long value with the specified value parameter and return the Long result. |
java.lang.String |
getResource(int resourceId)
Get resource with the specified resource id parameter and return the String result. |
TransportService |
getTransport()
Gets the transport (TransportService) value. |
protected void |
initialize(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
Initialize with the specified capabilities, status and configuration parameters. |
void |
initializeCommand(CommandService command)
Initialize command with the specified command parameter. |
void |
initializeMeasurement(MeasurementService measurement)
Initialize measurement with the specified measurement parameter. |
void |
initializeSignal(SignalService signal)
Initialize signal with the specified signal parameter. |
boolean |
isDeviceNeeded()
Gets the device needed (boolean) value. |
boolean |
isStarted()
Gets the started (boolean) value. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, new value and old value parameters. |
void |
setDevice(DeviceService device)
Sets the device value. |
void |
setDeviceCustom(DeviceService device)
Sets the device custom value. |
void |
setState(int state)
Sets the state value. |
void |
setup()
Setup. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
Signal occurred with the specified source, timestamp and data parameters. |
| Methods inherited from class org.eclipse.soda.dk.device.Device |
|---|
addDeviceListener, controlAdded, controlRemoved, finalize, fireContainerChanged, fireErrorOccurred, getCapabilities, getConfiguration, getDeviceListener, getMessageCapacity, getMessageKey, getPriority, getReadTimeout, getStatus, getThread, hasListeners, isAutoStart, isBlockProcessing, isEvenProcessing, isRunning, isThreadNeeded, load, put, remove, removeDeviceListener, restart, run, setDeviceListener, setReadTimeout, setRunning, setStarted, setThread, start, startup, stop |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
equalsValue, getCodeKey, getKey, getQualifiedKey, setKey, setQualifiedKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.profile.service.ProfileService |
|---|
getConfigurationInformation, getKey, getNotificationService, getState, setConfigurationInformation, setNotificationService, start, stop |
| 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 |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.device.service.DeviceService |
|---|
elements, get, getCommand, getConfigurationInformation, getMeasurement, getNotificationService, getSignal, getState, send, setConfigurationInformation, setNotificationService, setTransport |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Field Detail |
|---|
protected DeviceService device
| Constructor Detail |
|---|
public Profile()
Profile(String,String,String)
protected Profile(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
String) parameter.
The status (String) parameter.
The configuration (String) parameter.
Profile()| Method Detail |
|---|
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
CommandService) parameter. The
timestamp (Object) parameter. The data (Object)
parameter.
The source (CommandService) parameter.
The timestamp (Object) parameter.
The data (Object) parameter.
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 controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
DeviceService) parameter. The
timestamp (Object) parameter. The control (ControlService)
parameter. The code (int) parameter.
The device (DeviceService) parameter.
The timestamp (Object) parameter.
The control (ControlService) parameter.
The code (int) parameter.
controlChanged in interface DeviceListenerdevice - org.eclipse.soda.dk.device.service.DeviceServicetimestamp - java.lang.Objectcontrol - org.eclipse.soda.dk.device.service.ControlServicecode - intdeviceChanged(DeviceService,Object,int,int),
measurementChanged(MeasurementService,Object,Object,Object)
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
DeviceService) parameter.
The timestamp (Object) parameter. The new state (int)
parameter. The old state (int) parameter.
The source (DeviceService) parameter.
The timestamp (Object) parameter.
The new state (int) parameter.
The old state (int) parameter.
deviceChanged in interface DeviceListenersource - org.eclipse.soda.dk.device.service.DeviceServicetimestamp - java.lang.ObjectnewState - The new state of the DeviceService when the notification process started.oldState - The old state of the DeviceService.controlChanged(DeviceService,Object,ControlService,int),
measurementChanged(MeasurementService,Object,Object,Object)
public void deviceChangedCustom(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
DeviceService)
parameter. The timestamp (Object) parameter. The new
state (int) parameter. The old state (int)
parameter.
The source (DeviceService) parameter.
The timestamp (Object) parameter.
The new state (int) parameter.
The old state (int) parameter.
public void exit()
exit in interface DeviceServiceexit in interface ProfileServiceexit in class Containerpublic java.lang.Boolean getBooleanValue(java.lang.Object value)
Object) parameter.
Boolean)
value.
The value (Object) parameter.public DeviceService getDefaultDevice()
DeviceService) value.public java.lang.String getDefaultKey()
getDefaultKey in class DeviceString) value.Container.getDefaultKey()public DeviceService getDevice()
DeviceService) value.getDefaultDevice(),
setDevice(DeviceService)public java.lang.Object getLogDetails6()
getLogDetails6 in class ContainerObject) value.public java.lang.Long getLongValue(java.lang.Object value)
Object) parameter.
Long) value.public java.lang.String getResource(int resourceId)
int) parameter.
getResource in class ControlresourceId - The resource id (int) parameter.
String) value.EscObject.getDefaultResource(int)public TransportService getTransport()
getTransport in interface DeviceServicegetTransport in class ContainerTransportService) value.DeviceService.getTransport(),
Container.setTransport(TransportService)
protected void initialize(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
String) parameter.
The status (String) parameter.
The configuration (String) parameter.
public void initializeCommand(CommandService command)
CommandService)
parameter.
The command (CommandService) parameter.
public void initializeMeasurement(MeasurementService measurement)
MeasurementService) parameter.
The measurement (MeasurementService)
parameter.
public void initializeSignal(SignalService signal)
SignalService)
parameter.
The signal (SignalService) parameter.
public boolean isDeviceNeeded()
boolean) value.public boolean isStarted()
isStarted in interface DeviceServiceisStarted in class Deviceboolean) value.Device.setStarted(boolean)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
MeasurementService)
parameter. The timestamp (Object) parameter. The new
value (Object) parameter. The old value (Object)
parameter.
The source (MeasurementService) parameter.
The timestamp (Object) parameter.
The new value (Object) parameter.
The old value (Object) parameter.
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.controlChanged(DeviceService,Object,ControlService,int),
deviceChanged(DeviceService,Object,int,int)public void setDevice(DeviceService device)
DeviceService)
parameter.
The device (DeviceService) parameter.
getDefaultDevice(),
getDevice()public void setDeviceCustom(DeviceService device)
DeviceService) parameter.
public void setState(int state)
int) parameter.
The state (int) parameter.
setState in class Containerstate - The state (int) parameter.Container.getState()public void setup()
setup in class Container
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
SignalService) parameter. The timestamp (Object)
parameter. The data (Object) parameter.
The source (SignalService) parameter.
The timestamp (Object) parameter.
The data (Object) parameter.
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 | |||||||||