|
2009-01-09 1.2.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
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.Control |
|---|
EXCEPTION_READ_FAILED_RESOURCE, SET_VALUE_EXCEPTION_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)
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.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 |
|---|
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 |
|---|
protected DeviceService device
protected ProfileListener profileListener
| Constructor Detail |
|---|
public Profile()
Profile(String,String,String),
Profile(String,String,String,String),
Profile(String,String,String,String,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),
Profile(String,String,String,String,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),
Profile(String,String,String,String,String,String,String,String)
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)
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.Profile(),
Profile(String,String,String),
Profile(String,String,String,String)| Method Detail |
|---|
public void addProfileListener(ProfileListener profileListener)
profileListener - The profile listener (ProfileListener) parameter.getMultiplexProfileListener(),
getProfileListener(),
removeProfileListener(ProfileListener),
setProfileListener(ProfileListener)
public void channelChanged(DeviceService source,
java.lang.Object timestamp,
ChannelService channel,
int newState,
int oldState)
channelChanged in interface MultiplexDeviceListenersource - 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.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)
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
commandExecuted in interface MultiplexCommandListenersource - The source (CommandService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.commandExecuted(CommandService,Object,Object)
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
commandExecuted in interface CommandListenersource - The source (CommandService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.commandExecuted(CommandService,Object,ChannelService,Object)
public void controlAdded(EscObject container,
java.lang.Object currentTimestamp,
ControlService control)
controlAdded in class Devicecontainer - The container (EscObject) parameter.currentTimestamp - The current time stamp (Object) parameter.control - The control (ControlService) parameter.
public void controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
controlChanged in interface DeviceListenerdevice - The device (DeviceService) parameter.timestamp - The time stamp (Object) parameter.control - The control (ControlService) parameter.code - The code (int) parameter.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)
public void controlRemoved(EscObject container,
java.lang.Object timestamp,
ControlService control)
controlRemoved in class Devicecontainer - The container (EscObject) parameter.timestamp - The time stamp (Object) parameter.control - The control (ControlService) parameter.
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
deviceChanged in interface DeviceListenersource - The source (DeviceService) parameter.timestamp - The time stamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.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)
public void deviceChangedCustom(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
source - The source (DeviceService) parameter.timestamp - The time stamp (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 fireChannelChanged(java.lang.Object timestamp,
ChannelService channel,
int newState,
int oldState)
fireChannelChanged in class Devicetimestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.Device.getChannelChanged()
public void fireContainerChanged(java.lang.Object timestamp,
int newState,
int oldState)
fireContainerChanged in class Devicetimestamp - The time stamp (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 MultiplexProfileListener getMultiplexProfileListener()
MultiplexProfileListener) value.public int getNotificationPriorityDefault()
getNotificationPriorityDefault in class Deviceint) value.public ProfileListener getProfileListener()
getProfileListener in interface ProfileServiceProfileListener) value.addProfileListener(ProfileListener),
getMultiplexProfileListener(),
removeProfileListener(ProfileListener),
setProfileListener(ProfileListener)public java.lang.String getResource(int resourceId)
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.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,
ChannelService channel,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MultiplexMeasurementListenersource - 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.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)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MeasurementListenersource - The source (MeasurementService) parameter.timestamp - The time stamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.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)
public ChannelService openChannel(java.util.Map parameters)
throws java.io.IOException
openChannel in interface DeviceServiceopenChannel in interface ProfileServiceopenChannel in class Deviceparameters - The parameters (Map) parameter.
ChannelService) value.
java.io.IOException - IOException.Device.closeChannel(ChannelService),
Device.getChannel(String),
Device.getCloseChannel(),
Device.getOpenChannel(),
Device.handleMethodCloseChannel(int,Command,ChannelService,Object),
Device.handleMethodOpenChannel(int,Command,ChannelService,Object)public void removeDeviceListener(ProfileListener profileListener)
profileListener - The profile listener (ProfileListener) parameter.public void removeProfileListener(ProfileListener profileListener)
profileListener - The profile listener (ProfileListener) parameter.addProfileListener(ProfileListener),
getMultiplexProfileListener(),
getProfileListener(),
setProfileListener(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)
profileListener - The profile listener (ProfileListener) parameter.addProfileListener(ProfileListener),
getMultiplexProfileListener(),
getProfileListener(),
removeProfileListener(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,
ChannelService channel,
java.lang.Object data)
signalOccurred in interface MultiplexSignalListenersource - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.signalOccurred(SignalService,Object,Object)
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
signalOccurred in interface SignalListenersource - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.signalOccurred(SignalService,Object,ChannelService,Object)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||