|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.connecterra.ale.reader.DeviceUnit
public class DeviceUnit
A logical unit of operation within a physical device. For example, each antenna on an RFID device.
Constructor Summary | |
---|---|
DeviceUnit(AbstractPhysicalDevice pr,
PluginConfig config,
String deviceUnitKeyNamePrefix,
String telemetryDeviceName,
int deviceUnitNumber,
DeviceUnitCapabilities deviceUnitCaps)
|
Method Summary | |
---|---|
static void |
addToPluginMeta(DynamicConfigFactory factory,
PluginMeta pluginMeta,
String deviceUnitKeyNamePrefix,
MessageFormat deviceUnitParameterPattern,
int deviceUnitNumber,
DeviceUnitCapabilities caps)
|
static void |
addToPluginMeta(DynamicConfigFactory factory,
PluginMeta pluginMeta,
String deviceUnitKeyNamePrefix,
MessageFormat deviceUnitParameterPattern,
int deviceUnitNumber,
DeviceUnitCapabilities caps,
boolean isRequired)
Adds appropriate PluginParameterMeta objects to the PluginMeta as needed by the framework. |
DeviceUnitCapabilities |
getCapabilities()
|
int |
getDeviceUnitNumber()
|
DefaultLogicalReader |
getLogicalReader()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeviceUnit(AbstractPhysicalDevice pr, PluginConfig config, String deviceUnitKeyNamePrefix, String telemetryDeviceName, int deviceUnitNumber, DeviceUnitCapabilities deviceUnitCaps) throws com.connecterra.ale.reader.DeviceConfigurationException, com.connecterra.ale.resources.PluginLoadException
com.connecterra.ale.reader.DeviceConfigurationException
com.connecterra.ale.resources.PluginLoadException
Method Detail |
---|
public static void addToPluginMeta(DynamicConfigFactory factory, PluginMeta pluginMeta, String deviceUnitKeyNamePrefix, MessageFormat deviceUnitParameterPattern, int deviceUnitNumber, DeviceUnitCapabilities caps, boolean isRequired)
deviceUnitNumber
each time.
Currently, this adds two parameters. The exact form of the
parameters are specified by the
deviceUnitParameterPattern
argument. This
argument is formatted with two strings: the first is the
deviceUnitNumber
, and the second is "Logical
Reader Name" for the first parameter, and "Filter Names" for
the second parameter.
The key names for these parameters are "ABCLogicalReaderName"
and "ABCLogicalReaderFilterNames", where ABC is the value of
the deviceUnitKeyNamePrefix
argument. If this
argument is an empty string, then the first character of the
key names is made lower-case.
factory
- a DynamicConfigFactory
valuepluginMeta
- a PluginMeta
value to which
parameters are addeddeviceUnitKeyNamePrefix
- a String
valuedeviceUnitParameterPattern
- a MessageFormat
valuedeviceUnitNumber
- an int
valuecaps
- the DeviceUnitCapabilities
for the
unitisRequired
- true if the logical reader name parameter is
required.public static void addToPluginMeta(DynamicConfigFactory factory, PluginMeta pluginMeta, String deviceUnitKeyNamePrefix, MessageFormat deviceUnitParameterPattern, int deviceUnitNumber, DeviceUnitCapabilities caps)
public DefaultLogicalReader getLogicalReader()
DefaultLogicalReader
which this
DeviceUnit is a part ofpublic int getDeviceUnitNumber()
public String toString()
toString
in class Object
public DeviceUnitCapabilities getCapabilities()
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |