org.eclipse.soda.dk.base.device
Class BaseDevice
java.lang.Object
org.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.base.device.BaseDevice
- All Implemented Interfaces:
- java.lang.Runnable, BaseDeviceService, ControlService, DeviceService, ErrorListener
public abstract class BaseDevice
- extends Device
- implements DeviceService, BaseDeviceService
Base Device.
The BaseDevice class implements the BaseDeviceService and provides the controls for the device.
The list of exported services:
- Version:
- 1.1.0
- See Also:
BaseDeviceService,
DeviceService
| Fields inherited from class org.eclipse.soda.dk.device.Container |
broadcastCommandCount, broadcastMeasurementCount, broadcastSignalCount, 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, PROCESSING_UNABLE_TO_KEEP_UP_EXCEPTION_RESOURCE, RUN_EXCEPTION_RESOURCE, SEND_EXCEPTION_RESOURCE, stateChanaged, TOPIC_DELIMITER |
| 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 |
| Fields inherited from interface org.eclipse.soda.dk.base.device.service.BaseDeviceService |
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, BaseDevice, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CAPABILITIES_READ_EXTERNAL_KEY, CAPABILITIES_WRITE_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, CONFIGURATION_READ_EXTERNAL_KEY, CONFIGURATION_WRITE_EXTERNAL_KEY, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, STATUS_READ_EXTERNAL_KEY, STATUS_WRITE_EXTERNAL_KEY |
|
Constructor Summary |
BaseDevice()
Constructs a new instance of the BaseDevice class. |
| Methods inherited from class org.eclipse.soda.dk.device.Device |
addDeviceListener, controlAdded, controlRemoved, finalize, fireContainerChanged, fireErrorOccurred, getDeviceListener, getMessageKey, getPriority, getReadTimeout, getThread, hasListeners, initialize, isAutoStart, isBlockProcessing, isEvenProcessing, isRunning, isStarted, 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, addData, addQualifiedKeys, attemptRecoveryFromError, broadcast, broadcastStatus, broadcastStatus, changeIds, collectMetrics, createFilter, deactivate, elements, errorOccurred, exit, get, getBroadcastCommandCount, getBroadcastMeasurementCount, getBroadcastSignalCount, getBundleContext, getCommand, getConfigurationInformation, getConfigurationInformation, getConfigurationService, getControls, getDefaultStyle, getErrorSeverity, getInformation, getLogDetails4, getLogDetails5, getLogDetails6, getLogLevel, getMeasurement, getMetrics, getNotificationController, getNotificationService, getPrefix, getSignal, getState, getStatusDictionary, getString, getStyle, getTransport, handleMethodMetrics, initializeMeasurements, isInitializeMeasurements, keys, notificationReceived, prependPrefix, prependPrefix, put, putConfigurationInformation, register, register, removeListeners, removeQualifiedKeys, send, setBroadcastCommandCount, setBroadcastMeasurementCount, setBroadcastSignalCount, setBundleContext, setConfigurationInformation, setInformation, setListenersNull, setLogLevel, setMetrics, setNotificationController, setNotificationService, setState, setStateLocal, setStyle, setTransport, setup, setupCustom, setupNotification, setupNotificationCustom, startupCommands, toString, toStringInfo, transportStartedWait, unregister, unsubscribe, updateBroadcastCommandCount, updateBroadcastMeasurementCount, updateBroadcastSignalCount, validConfigurationId |
| Methods inherited from class org.eclipse.soda.dk.core.EscObject |
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createLong, createLongTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getFloat, getId, getIdName, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails7, getLogService, getLong, getObject, getOutputName, getReadOnlyEmptyCollection, getReadOnlyEmptyList, getReadOnlyEmptyMap, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isDebug, isLogging, isTrace, loadService, log, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CLASS_NAME
public static final java.lang.String CLASS_NAME
- Defines the full class name.
- See Also:
- Constant Field Values
status
protected final Measurement status
- Defines the Status measurement.
configuration
protected final Measurement configuration
- Defines the Configuration measurement.
capabilities
protected final Measurement capabilities
- Defines the Capabilities measurement.
BaseDevice
public BaseDevice()
- Constructs a new instance of the BaseDevice class.
getDefaultKey
public java.lang.String getDefaultKey()
- Gets the default key of the device.
- Overrides:
getDefaultKey in class Device
- Returns:
- String The default key
- See Also:
Container.getDefaultKey()
getDefaultTransport
public TransportService getDefaultTransport()
- Gets the default TransportService.
- Returns:
- TransportService The default TransportService.
getControlCapacity
public int getControlCapacity()
- Gets the control capacity.
- Overrides:
getControlCapacity in class Container
- Returns:
- The control capacity value.
getMessageCapacity
public int getMessageCapacity()
- Gets the message capacity.
- Overrides:
getMessageCapacity in class Device
- Returns:
- int The message capacity.
getStatus
public MeasurementService getStatus()
- Defines the Status measurement.
- Overrides:
getStatus in class Device
- Returns:
- The status value.
- See Also:
Container.broadcastStatus(),
Container.broadcastStatus(Object,int,int)
getConfiguration
public MeasurementService getConfiguration()
- Defines the Configuration measurement.
- Overrides:
getConfiguration in class Device
- Returns:
- The configuration value.
getCapabilities
public MeasurementService getCapabilities()
- Defines the Capabilities measurement.
- Overrides:
getCapabilities in class Device
- Returns:
- The capabilities value.
Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900