|
2008-07-29 1.1.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. |
protected ProfileListener |
profileListener
|
| 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 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)
|
protected |
Profile(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration,
java.lang.String metrics)
Constructs an instance of this class from the specified capabilities, status, configuration and metrics parameters. |
| Method Summary | |
|---|---|
void |
addProfileListener(ProfileListener profileListener)
|
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 |
controlAdded(EscObject container,
java.lang.Object currentTimestamp,
ControlService control)
Control added with the specified container, current timestamp and control parameters. |
void |
controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
The controlChanged method is called when a control was changed. |
void |
controlRemoved(EscObject container,
java.lang.Object timestamp,
ControlService control)
Control removed with the specified container, timestamp and control parameters. |
void |
deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the DeviceService changes. |
void |
deviceChangedCustom(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
|
void |
exit()
Exit. |
void |
fireContainerChanged(java.lang.Object timestamp,
int newState,
int oldState)
Fire container changed with the specified timestamp, new state and old state parameters. |
AdapterService |
getAdapter()
Gets the adapter (AdapterService) value. |
java.lang.Long |
getAnalogValue(java.lang.Object value)
Get analog value with the specified value parameter and return the Long result. |
java.lang.Boolean |
getBooleanValue(java.lang.Object value)
|
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)
|
ProfileListener |
getProfileListener()
|
java.lang.String |
getResource(int resourceId)
Gets the string resource using the supplied resourceId. |
TransportService |
getTransport()
Gets the transport (TransportService) value. |
void |
initialize(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
|
void |
initializeCommand(CommandService command)
|
void |
initializeMeasurement(MeasurementService measurement)
|
void |
initializeSignal(SignalService signal)
|
boolean |
isAdapterNeeded()
Gets the adapter needed (boolean) value. |
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)
This method is fired to all Listeners each time the value of the measurement changes. |
void |
removeProfileListener(ProfileListener profileListener)
|
void |
setDevice(DeviceService device)
|
void |
setDeviceCustom(DeviceService device)
|
void |
setProfileListener(ProfileListener profileListener)
|
void |
setState(int state)
|
void |
setup()
Setup. |
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.Device |
|---|
addDeviceListener, finalize, fireErrorOccurred, getCapabilities, getConfiguration, getDeviceListener, getMessageCapacity, getMessageKey, getPriority, getReadTimeout, getStatus, getThread, hasListeners, initialize, 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, findMethod, 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
protected ProfileListener profileListener
| Constructor Detail |
|---|
public Profile()
Profile(String,String,String),
Profile(String,String,String,String)
protected Profile(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
capabilities - The capabilities (String) parameter.status - The status (String) parameter.configuration - The configuration (String) parameter.Profile(),
Profile(String,String,String,String)
protected Profile(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration,
java.lang.String metrics)
capabilities - The capabilities (String) parameter.status - The status (String) parameter.configuration - The configuration (String) parameter.metrics - The metrics (String) parameter.Profile(),
Profile(String,String,String)| Method Detail |
|---|
public void addProfileListener(ProfileListener profileListener)
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
CommandListener
commandExecuted in interface CommandListenersource - The source (CommandService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
public void controlAdded(EscObject container,
java.lang.Object currentTimestamp,
ControlService control)
DeviceContainer) parameter. The current timestamp (Object) parameter. The control (ControlService) parameter.
controlAdded in class Devicecontainer - The container (Container) parameter.currentTimestamp - The current timestamp (Object) parameter.control - The control (ControlService) parameter.
public void controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
DeviceListener
controlChanged in interface DeviceListenerdevice - The device (DeviceService) parameter.timestamp - The timestamp (Object) parameter.control - The control (ControlService) parameter.code - The code (int) parameter.deviceChanged(DeviceService,Object,int,int),
measurementChanged(MeasurementService,Object,Object,Object)
public void controlRemoved(EscObject container,
java.lang.Object timestamp,
ControlService control)
DeviceContainer) parameter. The timestamp (Object) parameter. The control (ControlService) parameter.
controlRemoved in class Devicecontainer - The container (Container) parameter.timestamp - The timestamp (Object) parameter.control - The control (ControlService) parameter.
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
DeviceListener
deviceChanged in interface DeviceListenersource - The source (DeviceService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.controlChanged(DeviceService,Object,ControlService,int),
measurementChanged(MeasurementService,Object,Object,Object)
public void deviceChangedCustom(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
source - The source (DeviceService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public void exit()
exit in interface DeviceServiceexit in interface ProfileServiceexit in class Container
public void fireContainerChanged(java.lang.Object timestamp,
int newState,
int oldState)
Device
fireContainerChanged in class Devicetimestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public AdapterService getAdapter()
AdapterService) value.public java.lang.Long getAnalogValue(java.lang.Object value)
value - The value (Object) parameter.
Long) value.public java.lang.Boolean getBooleanValue(java.lang.Object value)
value - The 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)
value - The value (Object) parameter.
Long) value.public ProfileListener getProfileListener()
public java.lang.String getResource(int resourceId)
Control
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.Container.setTransport(TransportService)
public void initialize(java.lang.String capabilities,
java.lang.String status,
java.lang.String configuration)
capabilities - The capabilities (String) parameter.status - The status (String) parameter.configuration - The configuration (String) parameter.Device.initialize(String,String,String,String)public void initializeCommand(CommandService command)
command - The command (CommandService) parameter.public void initializeMeasurement(MeasurementService measurement)
measurement - The measurement (MeasurementService) parameter.public void initializeSignal(SignalService signal)
signal - The signal (SignalService) parameter.public boolean isAdapterNeeded()
boolean) value.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)
MeasurementListener
measurementChanged in interface MeasurementListenersource - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.controlChanged(DeviceService,Object,ControlService,int),
deviceChanged(DeviceService,Object,int,int)public void removeProfileListener(ProfileListener profileListener)
public void setDevice(DeviceService device)
device - The device (DeviceService) parameter.getDefaultDevice(),
getDevice()public void setDeviceCustom(DeviceService device)
device - The device (DeviceService) parameter.public void setProfileListener(ProfileListener profileListener)
public void setState(int state)
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)
SignalListener
signalOccurred in interface SignalListenersource - The source (SignalService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||