|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.cmw.rda.client.group.DeviceGroup
public class DeviceGroup
Allows to do get/set/subscribe operations on a group of devices, similary to DeviceHandle, which allows get/set/monitorOn operations on a single device (subscribe offers the same behaviour as in the Subscription class rather than that of the DeviceHandle). The purpose of this class is to create convenience methods to deal with groups of devices of same class. No effort has been made to optimize performance by actually grouping the communication, something we do not consider necessary today.
Constructor Summary | |
---|---|
DeviceGroup(String[] deviceNames)
Constructor. |
Method Summary | |
---|---|
CmwException[] |
getDeviceExceptions()
Returns exceptions thrown when creating deviceHandle's for this group. |
String[] |
getDeviceNames()
Returns names of devices in this group as an String array. |
static void |
main(String[] args)
For tests. the format of the command is: |
void |
subscribe(String propertyName,
String cycleSelector,
boolean onChange,
Data[] context,
GroupUpdateHandler replyHandler)
Starts subscription on this group of devices. |
void |
unsubscribe()
Cancels all subscriptions on this group and releases resources; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeviceGroup(String[] deviceNames)
Method Detail |
---|
public String[] getDeviceNames()
public CmwException[] getDeviceExceptions()
public void subscribe(String propertyName, String cycleSelector, boolean onChange, Data[] context, GroupUpdateHandler replyHandler)
GroupUpdateHandler
public void unsubscribe()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |