|
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.device.TransportDevice
public abstract class TransportDevice
The TransportDevice class implements the DeviceService interface.
Container,
Control,
Device,
ControlService,
ErrorListener,
MessageHandler,
TransportService,
TransportListener| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
protected |
TransportDevice()
Constructs an TransportDevice object. |
protected |
TransportDevice(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 |
TransportDevice(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 |
activate()
Activate. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
The errorOccurred method is called when an error has occurred. |
void |
exit()
Exit. |
abstract TransportService |
getDefaultTransport()
Gets the default transport (TransportService) value. |
InterestService |
getInterest()
Gets the interest (InterestService) value. |
java.util.Map |
getMessageListeners()
Gets the Map messageHandlers property value. |
TransportService |
getTransport()
Gets the Transport transport property value. |
protected void |
load(ControlService control)
Perform the load action method. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
ChannelService channel,
MessageService message)
This API will be called each time the TransportService receives a valid message. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
Message received with the specified transport service, timestamp and message parameters. |
void |
register(TransportService transport)
Register with the specified transport parameter. |
void |
registerMessageHandler(MessageService[] messages,
MessageHandler value)
Perform the registerMessageHandler action method. |
void |
registerMessageHandler(MessageService message,
MessageHandler value)
Register message handler with the specified message and value parameters. |
void |
send(ChannelService channel,
MessageService message)
Send with the specified channel and message parameters. |
void |
send(ChannelService channel,
MessageService message,
ResponseListener responseListener)
Send with the specified channel, message and response listener parameters. |
void |
send(MessageService message)
Perform the send action method. |
void |
send(MessageService message,
ResponseListener responseListener)
Send with the specified message and response listener parameters. |
void |
setState(int state)
Sets the state value. |
void |
setTransport(TransportService transport)
Sets the transport value. |
void |
setup()
Method setup. |
void |
start()
Perform the start action method. |
void |
stop()
Perform the stop action method. |
void |
transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes. |
void |
unregister(TransportService transport)
Unregister with the specified transport parameter. |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
equalsValue, findMethod, getCodeKey, getKey, getQualifiedKey, getResource, 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.transport.service.MultiplexTransportListener |
|---|
channelChanged |
| Methods inherited from interface org.eclipse.soda.dk.device.service.DeviceService |
|---|
elements, get, getCommand, getConfigurationInformation, getMeasurement, getNotificationService, getSignal, getState, setConfigurationInformation, setNotificationService |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Constructor Detail |
|---|
protected TransportDevice()
TransportDevice object.
TransportDevice(String,String,String,String),
TransportDevice(String,String,String,String,String,String,String,String)
protected TransportDevice(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.TransportDevice(),
TransportDevice(String,String,String,String,String,String,String,String)
protected TransportDevice(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.TransportDevice(),
TransportDevice(String,String,String,String)| Method Detail |
|---|
public void activate()
activate in class ContainerContainer.activate(ChannelService)
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
errorOccurred in interface ErrorListenererrorOccurred in class Containersource - The source (Object) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.Container.fireErrorOccurred(Object,Object)public void exit()
exit in interface DeviceServiceexit in class Containerpublic abstract TransportService getDefaultTransport()
TransportService) value.public InterestService getInterest()
public java.util.Map getMessageListeners()
Map messageHandlers property value.
Hashtable)public TransportService getTransport()
Transport transport property value.
getTransport in interface DeviceServicegetTransport in class ContainerTransportService)getDefaultTransport(),
setTransport(TransportService)protected void load(ControlService control)
org.eclipse.soda.dk.device.service.ControlService
load in class Devicecontrol - The control (ControlService) parameter.
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
ChannelService channel,
MessageService message)
messageReceived in interface MultiplexMessageListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.messageReceived(TransportService,Object,MessageService)
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
messageReceived in interface MessageListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.message - The message (MessageService) parameter.messageReceived(TransportService,Object,ChannelService,MessageService)public void register(TransportService transport)
transport - The transport (TransportService) parameter.
public void registerMessageHandler(MessageService message,
MessageHandler value)
message - The message (MessageService) parameter.value - The value (MessageHandler) parameter.registerMessageHandler(MessageService[],MessageHandler)
public void registerMessageHandler(MessageService[] messages,
MessageHandler value)
org.eclipse.soda.dk.message.service.MessageService[] org.eclipse.soda.dk.device.MessageHandler
messages - The messages (MessageService[]) parameter.value - The value (MessageHandler) parameter.registerMessageHandler(MessageService,MessageHandler)
public void send(ChannelService channel,
MessageService message)
send in interface DeviceServicesend in class Containerchannel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.send(ChannelService,MessageService,ResponseListener),
send(MessageService),
send(MessageService,ResponseListener)
public void send(ChannelService channel,
MessageService message,
ResponseListener responseListener)
send in interface DeviceServicesend in class Containerchannel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.responseListener - The response listener (ResponseListener) parameter.send(ChannelService,MessageService),
send(MessageService),
send(MessageService,ResponseListener)
public void send(MessageService message)
throws java.lang.RuntimeException
org.eclipse.soda.dk.message.service.MessageService
send in interface DeviceServicesend in class Containermessage - The message (MessageService) parameter.
java.lang.RuntimeException - Runtime Exception.send(ChannelService,MessageService),
send(ChannelService,MessageService,ResponseListener),
send(MessageService,ResponseListener)
public void send(MessageService message,
ResponseListener responseListener)
send in interface DeviceServicesend in class Containermessage - The message (MessageService) parameter.responseListener - The response listener (ResponseListener) parameter.send(ChannelService,MessageService),
send(ChannelService,MessageService,ResponseListener),
send(MessageService)public void setState(int state)
setState in class Containerstate - The state (int) parameter.Container.getState()public void setTransport(TransportService transport)
setTransport in interface DeviceServicesetTransport in class Containertransport - The transport (TransportService) parameter.getDefaultTransport(),
getTransport()public void setup()
Container
setup in class ContainerContainer.setup()public void start()
Device
start in interface DeviceServicestart in class DeviceDeviceService.start()public void stop()
stop in interface DeviceServicestop in class DeviceDeviceService.stop()
public void transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
org.eclipse.soda.dk.transport.service.TransportService java.lang.Object
The new state of the TransportService when the notification process started. The old state of the TransportService.
transportChanged in interface TransportListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public void unregister(TransportService transport)
transport - The transport (TransportService) parameter.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||