2009-01-09 1.2.0

org.eclipse.soda.dk.profile
Class Profile

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.device.Control
          extended by org.eclipse.soda.dk.device.Container
              extended by org.eclipse.soda.dk.device.Device
                  extended by org.eclipse.soda.dk.profile.Profile
All Implemented Interfaces:
java.lang.Runnable, CommandListener, MultiplexCommandListener, ControlService, DeviceListener, DeviceService, MultiplexDeviceListener, MeasurementListener, MultiplexMeasurementListener, ProfileService, MultiplexSignalListener, SignalListener, ErrorListener
Direct Known Subclasses:
DeviceProfile

public class Profile
extends Device
implements ProfileService, MultiplexCommandListener, MultiplexSignalListener, MultiplexMeasurementListener, MultiplexDeviceListener

Since:
1.0
Version:
1.2.0

Field Summary
protected  DeviceService device
          Define the device (DeviceService) field.
protected  ProfileListener profileListener
          Define the profile listener (ProfileListener) field.
 
Fields inherited from class org.eclipse.soda.dk.device.Device
channelChanged, channels, closeChannel, openChannel, POLL_COMMAND_NAME, START_COMMAND_NAME, STARTED_MASK, STOP_COMMAND_NAME
 
Fields inherited from class org.eclipse.soda.dk.device.Container
broadcastCommandCount, broadcastMeasurementCount, broadcastSignalCount, capabilities, CHANNEL_CHANGED_EXCEPTION_RESOURCE, configuration, DEVICE_ACTIVE_STATE_RESOURCE, DEVICE_ALIVE_STATE_RESOURCE, DEVICE_CHANGED_EXCEPTION_RESOURCE, DEVICE_CONNECTED_STATE_RESOURCE, DEVICE_CREATED_STATE_RESOURCE, DEVICE_DEAD_STATE_RESOURCE, DEVICE_STARTED_STATE_RESOURCE, DEVICE_STATE_RESOURCE_TABLE, EXCEPTION_NO_TRANSPORT_RESOURCE, INITIALIZE_CONFIGURATION_EXCEPTION_RESOURCE, INITIALIZE_CONFIGURATION_MISCOMPARE_RESOURCE, INITIALIZE_CONFIGURATION_RESOURCE, INITIALIZE_CONFIGURATION_SAME_RESOURCE, INITIALIZE_READ_EXCEPTION_RESOURCE, INITIALIZE_WRITE_EXCEPTION_RESOURCE, logLevel, MESSAGE_RECEIVED_EXCEPTION_RESOURCE, metrics, NOTIFICATION_PRIORITY_DEFAULT, notificationPriority, PROCESSING_UNABLE_TO_KEEP_UP_EXCEPTION_RESOURCE, RUN_EXCEPTION_RESOURCE, SEND_EXCEPTION_RESOURCE, stateChanged, status, TOPIC_DELIMITER
 
Fields inherited from class org.eclipse.soda.dk.device.Control
EXCEPTION_READ_FAILED_RESOURCE, SET_VALUE_EXCEPTION_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, ID_NAME_KEY, INTEGER_TABLE, INTEGER_TABLE_SIZE, KEY_KEY, LOG_DEBUG, LOG_DEFAULT, LOG_ERROR, LOG_INFO, LOG_LEVEL_KEY, LOG_TRACE, LOG_WARNING, LONG_TABLE, LONG_TABLE_SIZE, PREFIX_KEY, READONLY_EMPTY_COLLECTION, READONLY_EMPTY_LIST, READONLY_EMPTY_MAP, 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, Unmodifiable
 
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, CHANNEL_CHANGED_EXTERNAL_KEY, CHANNEL_EXTERNAL_ID_DATA_KEY, CHANNEL_ID_DATA_KEY, ChannelChanged, Channels, CHANNELS_EXTERNAL_KEY, CHANNELS_GET_EXTERNAL_KEY, CHANNELS_READ_EXTERNAL_KEY, CHANNELS_WRITE_EXTERNAL_KEY, CLOSE_CHANNEL_EXTERNAL_KEY, CloseChannel, Configuration, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, CONFIGURATION_READ_EXTERNAL_KEY, CONFIGURATION_WRITE_EXTERNAL_KEY, CONNECTED, CREATED, DEAD, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, OPEN_CHANNEL_EXTERNAL_KEY, OpenChannel, 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
 
Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceService
ACTIVE, ALIVE, ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, AUTOSTART, BLOCKPROCESSING, BROADCAST_COMMAND_COUNT_DATA_KEY, BROADCAST_MEASUREMENT_COUNT_DATA_KEY, BROADCAST_SIGNAL_COUNT_DATA_KEY, Capabilities, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CAPABILITIES_READ_EXTERNAL_KEY, CAPABILITIES_WRITE_EXTERNAL_KEY, CHANNEL_CHANGED_EXTERNAL_KEY, CHANNEL_EXTERNAL_ID_DATA_KEY, CHANNEL_ID_DATA_KEY, ChannelChanged, Channels, CHANNELS_EXTERNAL_KEY, CHANNELS_GET_EXTERNAL_KEY, CHANNELS_READ_EXTERNAL_KEY, CHANNELS_WRITE_EXTERNAL_KEY, CLOSE_CHANNEL_EXTERNAL_KEY, CloseChannel, Configuration, CONFIGURATION_DATA_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, CONFIGURATION_READ_EXTERNAL_KEY, CONFIGURATION_WRITE_EXTERNAL_KEY, CONNECTED, CREATED, DEAD, ERROR_EXTERNAL_KEY, EVENPROCESSING, EXECUTE_EXTERNAL_KEY, GET_EXTERNAL_KEY, INITIALIZEMEASUREMENTS, KEYS_DATA_KEY, Metrics, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, NULL, OPEN_CHANNEL_EXTERNAL_KEY, OpenChannel, READ_EXTERNAL_KEY, RECEIVED_KEY_DATA_KEY, SERVICE_NAME, SET_EXTERNAL_KEY, SOURCE_DATA_KEY, STARTED, STATE_DATA_KEY, STATE_OLD_DATA_KEY, Status, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, STATUS_READ_EXTERNAL_KEY, STATUS_WRITE_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, TRIGGER_EXTERNAL_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY, WRITE_EXTERNAL_KEY
 
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.
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.
protected Profile(java.lang.String capabilities, java.lang.String status, java.lang.String configuration, java.lang.String metrics, java.lang.String channels, java.lang.String channelChanged, java.lang.String openChannel, java.lang.String closeChannel)
          Constructs an instance of this class from the specified capabilities, status, configuration, metrics, channels, channel changed, open channel and close channel parameters.
 
Method Summary
 void addProfileListener(ProfileListener profileListener)
          Add profile listener with the specified profile listener parameter.
 void channelChanged(DeviceService source, java.lang.Object timestamp, ChannelService channel, int newState, int oldState)
          Channel changed with the specified source, timestamp, channel, new state and old state parameters.
 void commandExecuted(CommandService source, java.lang.Object timestamp, ChannelService channel, java.lang.Object data)
          Command executed with the specified source, timestamp, channel and data parameters.
 void commandExecuted(CommandService source, java.lang.Object timestamp, java.lang.Object data)
          Command executed with the specified source, time stamp and data parameters.
 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)
          Control changed with the specified device, time stamp, control and code parameters.
 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)
          Device changed with the specified source, time stamp, 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, time stamp, new state and old state parameters.
 void exit()
          Exit.
 void fireChannelChanged(java.lang.Object timestamp, ChannelService channel, int newState, int oldState)
          Fire channel changed with the specified timestamp, channel, new state and old state parameters.
 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)
          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.
 MultiplexProfileListener getMultiplexProfileListener()
          Gets the multiplex profile listener value.
 int getNotificationPriorityDefault()
          Gets the notification priority default (int) value.
 ProfileListener getProfileListener()
          Gets the profile listener value.
 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.
 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 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, ChannelService channel, java.lang.Object newValue, java.lang.Object oldValue)
          Measurement changed with the specified source, timestamp, channel, new value and old value parameters.
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Measurement changed with the specified source, time stamp, new value and old value parameters.
 ChannelService openChannel(java.util.Map parameters)
          Open channel with the specified channel spec parameter and return the ChannelService result.
 void removeDeviceListener(ProfileListener profileListener)
          Remove device listener with the specified profile listener parameter.
 void removeProfileListener(ProfileListener profileListener)
          Remove profile listener with the specified profile listener parameter.
 void setDevice(DeviceService device)
          Sets the device value.
 void setDeviceCustom(DeviceService device)
          Sets the device custom value.
 void setProfileListener(ProfileListener profileListener)
          Sets the profile listener value.
 void setState(int state)
          Sets the state value.
 void setup()
          Setup.
 void signalOccurred(SignalService source, java.lang.Object timestamp, ChannelService channel, java.lang.Object data)
          Signal occurred with the specified source, timestamp, channel and data parameters.
 void signalOccurred(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Signal occurred with the specified source, time stamp and data parameters.
 
Methods inherited from class org.eclipse.soda.dk.device.Device
addDeviceListener, channelChanged, channelChanged, closeChannel, finalize, fireErrorOccurred, getCapabilities, getChannel, getChannelChanged, getChannels, getCloseChannel, getConfiguration, getDeviceListener, getMessageCapacity, getMessageKey, getMultiplexDeviceListener, getOpenChannel, getPriority, getReadTimeout, getStatus, getThread, handleMethodChannels, handleMethodCloseChannel, handleMethodMetrics, handleMethodOpenChannel, hasListeners, initialize, 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.Container
activate, activate, addData, addQualifiedKeys, attemptRecoveryFromError, broadcast, broadcastStatus, broadcastStatus, changeIds, collectMetrics, createFilter, deactivate, deactivate, elements, errorOccurred, get, getBroadcastCommandCount, getBroadcastMeasurementCount, getBroadcastSignalCount, getBundleContext, getCommand, getConfigurationInformation, getConfigurationInformation, getConfigurationService, getControlCapacity, getControls, getDefaultStyle, getErrorSeverity, getInformation, getLogDetails4, getLogDetails5, getLogLevel, getMeasurement, getMetrics, getNotificationController, getNotificationPriority, getNotificationService, getNumberValue, getPrefix, getSignal, getState, getStatusDictionary, getString, getStyle, handleMethodMetrics, initializeMeasurements, initializeMeasurements, isInitializeMeasurements, keys, notificationReceived, prependPrefix, prependPrefix, put, putConfigurationInformation, register, register, removeListeners, removeQualifiedKeys, send, send, send, send, setBroadcastCommandCount, setBroadcastMeasurementCount, setBroadcastSignalCount, setBundleContext, setConfigurationInformation, setInformation, setListenersNull, setLogLevel, setMetrics, setNotificationController, setNotificationPriority, setNotificationService, setStateLocal, setStyle, setTransport, setupCustom, setupNotification, setupNotificationCustom, startupCommands, startupCommands, toString, toStringInfo, transportStartedWait, unregister, unsubscribe, updateBroadcastCommandCount, updateBroadcastMeasurementCount, updateBroadcastSignalCount, validConfigurationId
 
Methods inherited from class org.eclipse.soda.dk.device.Control
equalsValue, findMethod, getCodeKey, getKey, getQualifiedKey, setKey, setQualifiedKey
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
createBoolean, createDefaultLogService, createException, createException, createInteger, createIntegerTable, createLong, createLongTable, createNumber, format, getBoolean, getByte, getChar, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getDouble, getFloat, getId, getIdName, getInt, getLoadLibraryName, getLogDetails, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails7, getLogService, getLong, getObject, getOutputName, getReadOnlyEmptyCollection, getReadOnlyEmptyList, getReadOnlyEmptyMap, getShort, getSimpleClassName, getStaticBoolean, getStaticByte, getStaticChar, getStaticDouble, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticShort, getStaticString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isBackward, isDebug, isLogging, isTrace, isUnmodifiable, loadService, log, log, log, report, report, report, report, report, report, report, reportError, reportSystemInfo, setBackward, setDebug, setDefaultLogService, setLogService, setTraceLevel, setUnmodifiable, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys
 
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
getChannel, 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, send, send, send, setConfigurationInformation, setNotificationService, setTransport
 
Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService
getKey
 

Field Detail

device

protected DeviceService device
Define the device (DeviceService) field.


profileListener

protected ProfileListener profileListener
Define the profile listener (ProfileListener) field.

Constructor Detail

Profile

public Profile()
Constructs an instance of this class.

See Also:
Profile(String,String,String), Profile(String,String,String,String), Profile(String,String,String,String,String,String,String,String)

Profile

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.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.
See Also:
Profile(), Profile(String,String,String,String), Profile(String,String,String,String,String,String,String,String)

Profile

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.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.
metrics - The metrics (String) parameter.
See Also:
Profile(), Profile(String,String,String), Profile(String,String,String,String,String,String,String,String)

Profile

protected Profile(java.lang.String capabilities,
                  java.lang.String status,
                  java.lang.String configuration,
                  java.lang.String metrics,
                  java.lang.String channels,
                  java.lang.String channelChanged,
                  java.lang.String openChannel,
                  java.lang.String closeChannel)
Constructs an instance of this class from the specified capabilities, status, configuration, metrics, channels, channel changed, open channel and close channel parameters.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.
metrics - The metrics (String) parameter.
channels - The channels (String) parameter.
channelChanged - The channel changed (String) parameter.
openChannel - The open channel (String) parameter.
closeChannel - The close channel (String) parameter.
Since:
1.2
See Also:
Profile(), Profile(String,String,String), Profile(String,String,String,String)
Method Detail

addProfileListener

public void addProfileListener(ProfileListener profileListener)
Add profile listener with the specified profile listener parameter.

Parameters:
profileListener - The profile listener (ProfileListener) parameter.
See Also:
getMultiplexProfileListener(), getProfileListener(), removeProfileListener(ProfileListener), setProfileListener(ProfileListener)

channelChanged

public void channelChanged(DeviceService source,
                           java.lang.Object timestamp,
                           ChannelService channel,
                           int newState,
                           int oldState)
Channel changed with the specified source, timestamp, channel, new state and old state parameters.

Specified by:
channelChanged in interface MultiplexDeviceListener
Parameters:
source - The source (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.
Since:
1.2
See Also:
controlChanged(DeviceService,Object,ControlService,int), deviceChanged(DeviceService,Object,int,int), fireChannelChanged(Object,ChannelService,int,int), fireContainerChanged(Object,int,int), measurementChanged(MeasurementService,Object,ChannelService,Object,Object), measurementChanged(MeasurementService,Object,Object,Object)

commandExecuted

public void commandExecuted(CommandService source,
                            java.lang.Object timestamp,
                            ChannelService channel,
                            java.lang.Object data)
Command executed with the specified source, timestamp, channel and data parameters.

Specified by:
commandExecuted in interface MultiplexCommandListener
Parameters:
source - The source (CommandService) parameter.
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
data - The data (Object) parameter.
Since:
1.2
See Also:
commandExecuted(CommandService,Object,Object)

commandExecuted

public void commandExecuted(CommandService source,
                            java.lang.Object timestamp,
                            java.lang.Object data)
Command executed with the specified source, time stamp and data parameters.

Specified by:
commandExecuted in interface CommandListener
Parameters:
source - The source (CommandService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.
See Also:
commandExecuted(CommandService,Object,ChannelService,Object)

controlAdded

public void controlAdded(EscObject container,
                         java.lang.Object currentTimestamp,
                         ControlService control)
Control added with the specified container, current timestamp and control parameters.

Overrides:
controlAdded in class Device
Parameters:
container - The container (EscObject) parameter.
currentTimestamp - The current time stamp (Object) parameter.
control - The control (ControlService) parameter.

controlChanged

public void controlChanged(DeviceService device,
                           java.lang.Object timestamp,
                           ControlService control,
                           int code)
Control changed with the specified device, time stamp, control and code parameters.

Specified by:
controlChanged in interface DeviceListener
Parameters:
device - The device (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
control - The control (ControlService) parameter.
code - The code (int) parameter.
See Also:
channelChanged(DeviceService,Object,ChannelService,int,int), deviceChanged(DeviceService,Object,int,int), fireChannelChanged(Object,ChannelService,int,int), fireContainerChanged(Object,int,int), measurementChanged(MeasurementService,Object,ChannelService,Object,Object), measurementChanged(MeasurementService,Object,Object,Object)

controlRemoved

public void controlRemoved(EscObject container,
                           java.lang.Object timestamp,
                           ControlService control)
Control removed with the specified container, timestamp and control parameters.

Overrides:
controlRemoved in class Device
Parameters:
container - The container (EscObject) parameter.
timestamp - The time stamp (Object) parameter.
control - The control (ControlService) parameter.

deviceChanged

public void deviceChanged(DeviceService source,
                          java.lang.Object timestamp,
                          int newState,
                          int oldState)
Device changed with the specified source, time stamp, new state and old state parameters.

Specified by:
deviceChanged in interface DeviceListener
Parameters:
source - The source (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.
See Also:
channelChanged(DeviceService,Object,ChannelService,int,int), controlChanged(DeviceService,Object,ControlService,int), fireChannelChanged(Object,ChannelService,int,int), fireContainerChanged(Object,int,int), measurementChanged(MeasurementService,Object,ChannelService,Object,Object), measurementChanged(MeasurementService,Object,Object,Object)

deviceChangedCustom

public void deviceChangedCustom(DeviceService source,
                                java.lang.Object timestamp,
                                int newState,
                                int oldState)
Device changed custom with the specified source, time stamp, new state and old state parameters.

Parameters:
source - The source (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.

exit

public void exit()
Exit.

Specified by:
exit in interface DeviceService
Specified by:
exit in interface ProfileService
Overrides:
exit in class Container

fireChannelChanged

public void fireChannelChanged(java.lang.Object timestamp,
                               ChannelService channel,
                               int newState,
                               int oldState)
Fire channel changed with the specified timestamp, channel, new state and old state parameters.

Overrides:
fireChannelChanged in class Device
Parameters:
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.
Since:
1.2
See Also:
Device.getChannelChanged()

fireContainerChanged

public void fireContainerChanged(java.lang.Object timestamp,
                                 int newState,
                                 int oldState)
Fire container changed with the specified timestamp, new state and old state parameters.

Overrides:
fireContainerChanged in class Device
Parameters:
timestamp - The time stamp (Object) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.

getAdapter

public AdapterService getAdapter()
Gets the adapter (AdapterService) value.

Returns:
The adapter (AdapterService) value.

getAnalogValue

public java.lang.Long getAnalogValue(java.lang.Object value)
Get analog value with the specified value parameter and return the Long result.

Parameters:
value - The value (Object) parameter.
Returns:
Results of the get analog value (Long) value.

getBooleanValue

public java.lang.Boolean getBooleanValue(java.lang.Object value)
Get boolean value with the specified value parameter and return the Boolean result.

Parameters:
value - The value (Object) parameter.
Returns:
Results of the get boolean value (Boolean) value. The value (Object) parameter.

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default device (DeviceService) value.

Returns:
The default device (DeviceService) value.

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key (String) value.

Overrides:
getDefaultKey in class Device
Returns:
The default key (String) value.
See Also:
Container.getDefaultKey()

getDevice

public DeviceService getDevice()
Gets the device (DeviceService) value.

Returns:
The device (DeviceService) value.
See Also:
getDefaultDevice(), setDevice(DeviceService)

getLogDetails6

public java.lang.Object getLogDetails6()
Gets the log details6 (Object) value.

Overrides:
getLogDetails6 in class Container
Returns:
The log details6 (Object) value.

getLongValue

public java.lang.Long getLongValue(java.lang.Object value)
Get long value with the specified value parameter and return the Long result.

Parameters:
value - The value (Object) parameter.
Returns:
Results of the get long value (Long) value.

getMultiplexProfileListener

public MultiplexProfileListener getMultiplexProfileListener()
Gets the multiplex profile listener value.

Returns:
The multiplex profile listener (MultiplexProfileListener) value.
Since:
1.2

getNotificationPriorityDefault

public int getNotificationPriorityDefault()
Gets the notification priority default (int) value.

Overrides:
getNotificationPriorityDefault in class Device
Returns:
The notification priority default (int) value.
Since:
1.2

getProfileListener

public ProfileListener getProfileListener()
Gets the profile listener value.

Specified by:
getProfileListener in interface ProfileService
Returns:
The profile listener (ProfileListener) value.
See Also:
addProfileListener(ProfileListener), getMultiplexProfileListener(), removeProfileListener(ProfileListener), setProfileListener(ProfileListener)

getResource

public java.lang.String getResource(int resourceId)
Get resource with the specified resource ID parameter and return the String result.

Overrides:
getResource in class Control
Parameters:
resourceId - The resource ID (int) parameter.
Returns:
Results of the get resource (String) value.
See Also:
EscObject.getDefaultResource(int)

getTransport

public TransportService getTransport()
Gets the transport (TransportService) value.

Specified by:
getTransport in interface DeviceService
Overrides:
getTransport in class Container
Returns:
The transport (TransportService) value.
See Also:
Container.setTransport(TransportService)

initialize

public void initialize(java.lang.String capabilities,
                       java.lang.String status,
                       java.lang.String configuration)
Initialize with the specified capabilities, status and configuration parameters.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.

initializeCommand

public void initializeCommand(CommandService command)
Initialize command with the specified command parameter.

Parameters:
command - The command (CommandService) parameter.

initializeMeasurement

public void initializeMeasurement(MeasurementService measurement)
Initialize measurement with the specified measurement parameter.

Parameters:
measurement - The measurement (MeasurementService) parameter.

initializeSignal

public void initializeSignal(SignalService signal)
Initialize signal with the specified signal parameter.

Parameters:
signal - The signal (SignalService) parameter.

isAdapterNeeded

public boolean isAdapterNeeded()
Gets the adapter needed (boolean) value.

Returns:
The adapter needed (boolean) value.

isDeviceNeeded

public boolean isDeviceNeeded()
Gets the device needed (boolean) value.

Returns:
The device needed (boolean) value.

isStarted

public boolean isStarted()
Gets the started (boolean) value.

Specified by:
isStarted in interface DeviceService
Overrides:
isStarted in class Device
Returns:
The started (boolean) value.
See Also:
Device.setStarted(boolean)

measurementChanged

public void measurementChanged(MeasurementService source,
                               java.lang.Object timestamp,
                               ChannelService channel,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, channel, new value and old value parameters.

Specified by:
measurementChanged in interface MultiplexMeasurementListener
Parameters:
source - The source (MeasurementService) parameter.
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.
Since:
1.2
See Also:
channelChanged(DeviceService,Object,ChannelService,int,int), controlChanged(DeviceService,Object,ControlService,int), deviceChanged(DeviceService,Object,int,int), fireChannelChanged(Object,ChannelService,int,int), fireContainerChanged(Object,int,int), measurementChanged(MeasurementService,Object,Object,Object)

measurementChanged

public void measurementChanged(MeasurementService source,
                               java.lang.Object timestamp,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)
Measurement changed with the specified source, time stamp, new value and old value parameters.

Specified by:
measurementChanged in interface MeasurementListener
Parameters:
source - The source (MeasurementService) parameter.
timestamp - The time stamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.
See Also:
channelChanged(DeviceService,Object,ChannelService,int,int), controlChanged(DeviceService,Object,ControlService,int), deviceChanged(DeviceService,Object,int,int), fireChannelChanged(Object,ChannelService,int,int), fireContainerChanged(Object,int,int), measurementChanged(MeasurementService,Object,ChannelService,Object,Object)

openChannel

public ChannelService openChannel(java.util.Map parameters)
                           throws java.io.IOException
Open channel with the specified channel spec parameter and return the ChannelService result.

Specified by:
openChannel in interface DeviceService
Specified by:
openChannel in interface ProfileService
Overrides:
openChannel in class Device
Parameters:
parameters - The parameters (Map) parameter.
Returns:
Results of the open channel (ChannelService) value.
Throws:
java.io.IOException - IOException.
Since:
1.2
See Also:
Device.closeChannel(ChannelService), Device.getChannel(String), Device.getCloseChannel(), Device.getOpenChannel(), Device.handleMethodCloseChannel(int,Command,ChannelService,Object), Device.handleMethodOpenChannel(int,Command,ChannelService,Object)

removeDeviceListener

public void removeDeviceListener(ProfileListener profileListener)
Remove device listener with the specified profile listener parameter.

Parameters:
profileListener - The profile listener (ProfileListener) parameter.
Since:
1.2

removeProfileListener

public void removeProfileListener(ProfileListener profileListener)
Remove profile listener with the specified profile listener parameter.

Parameters:
profileListener - The profile listener (ProfileListener) parameter.
See Also:
addProfileListener(ProfileListener), getMultiplexProfileListener(), getProfileListener(), setProfileListener(ProfileListener)

setDevice

public void setDevice(DeviceService device)
Sets the device value.

Parameters:
device - The device (DeviceService) parameter.
See Also:
getDefaultDevice(), getDevice()

setDeviceCustom

public void setDeviceCustom(DeviceService device)
Sets the device custom value.

Parameters:
device - The device (DeviceService) parameter.

setProfileListener

public void setProfileListener(ProfileListener profileListener)
Sets the profile listener value.

Parameters:
profileListener - The profile listener (ProfileListener) parameter.
See Also:
addProfileListener(ProfileListener), getMultiplexProfileListener(), getProfileListener(), removeProfileListener(ProfileListener)

setState

public void setState(int state)
Sets the state value.

Overrides:
setState in class Container
Parameters:
state - The state (int) parameter.
See Also:
Container.getState()

setup

public void setup()
Setup.

Overrides:
setup in class Container

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           ChannelService channel,
                           java.lang.Object data)
Signal occurred with the specified source, timestamp, channel and data parameters.

Specified by:
signalOccurred in interface MultiplexSignalListener
Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
data - The data (Object) parameter.
Since:
1.2
See Also:
signalOccurred(SignalService,Object,Object)

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred with the specified source, time stamp and data parameters.

Specified by:
signalOccurred in interface SignalListener
Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.
See Also:
signalOccurred(SignalService,Object,ChannelService,Object)

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.