|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cdev.Device | +--cdev.DeviceArray
This class provides an ordered collection of devices represented by a Device object. It overwrites the I/O methods. The data objects referred in I/O methods and in DeviceEvent include the values for all the single devices. As a result, the "value" dataEntry will have as its first dimension the size of the collection.
Fields inherited from class cdev.Device |
CONTROL_CTX,
MONITOR_CTX,
VALUE_CTX |
Constructor Summary | |
DeviceArray(java.lang.String listName)
Constructs a device array from a pre-defined list. |
|
DeviceArray(java.lang.String listName,
ControlSystem controlSystem)
Constructs a device array from a pre-defined list. |
|
DeviceArray(java.lang.String name,
java.lang.String[] names)
Constructs a device array from a dynamic list. |
|
DeviceArray(java.lang.String name,
java.lang.String[] names,
ControlSystem controlSystem)
Constructs a device array from a dynamic list. |
Method Summary | |
DeviceClass |
getDeviceClass()
Returns the reference to the device class this device belongs to. |
DeviceData[] |
getDeviceDatas()
Returns the array of DeviceData |
Device[] |
getDevices()
Returns component as independant devices. |
java.lang.String[] |
getNames()
Returns the names of the components in this device array. |
boolean |
needCycleType()
Returns true if the I/O may require a cycle type. |
int |
size()
Returns the number of components in this device array. |
Methods inherited from class cdev.Device |
get,
get,
getCharacteristic,
getCharacteristic,
getContext,
getControlSystem,
getName,
getReference,
getReference,
getServiceData,
monitorOff,
monitorOn,
needCycleType,
send,
send,
send,
sendNoBlock,
set,
set,
setContext,
setContext,
setReference,
setReference,
setServiceData |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DeviceArray(java.lang.String listName, ControlSystem controlSystem) throws DataNotFoundException, java.io.IOException
listName
- a name of a list of devices.controlSystem
- the control system that will manage the I/O for this device,
null means the default control system.public DeviceArray(java.lang.String listName) throws DataNotFoundException, java.io.IOException
DeviceArray(String,ControlSystem)
public DeviceArray(java.lang.String name, java.lang.String[] names, ControlSystem controlSystem) throws DataNotFoundException, java.io.IOException
name
- the name for the array devicenames
- the names of the devices that compose the array.controlSystem
- the control system that will manage the I/O for this device,
null means the default control system.public DeviceArray(java.lang.String name, java.lang.String[] names) throws DataNotFoundException, java.io.IOException
DeviceArray(String,String[],ControlSystem)
Method Detail |
public DeviceClass getDeviceClass() throws DataNotFoundException
public boolean needCycleType() throws DataNotFoundException
public final int size()
public DeviceData[] getDeviceDatas() throws DataNotFoundException
public java.lang.String[] getNames() throws DataNotFoundException
public final Device[] getDevices() throws DataNotFoundException, java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |