| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes IO groups. The IOGroup allows grouping of any numbers of IOItems. For instance monitoring of a group of items may be turned off by a call to setActive(false) on the group.
| Method Summary | |
 void | 
addIOListener(IOListener l)
Add a listener for IO events related to this group  | 
 void | 
addItem(IOItem ioi)
Add an item to this group  | 
 void | 
fireAllItems()
Use this method to manually fire a onValueChanged() notification to all listeners of this group  | 
 void | 
fireAllItems(IOListener iol)
Use this method to manually fire a onValueChanged() notification to the specified IOListener  | 
 void | 
fireAllItems(IOListener iol,
             boolean performRead,
             int dataSource)
Use this method to manually fire a IOListener.onValueChanged(dk.opi.io.IOItem) notification to
 the specified IOListener.   | 
 String | 
getDescription()
Get descriptive text for this group  | 
 IOItem | 
getItem(String actionCmdName)
Return an IOItem from this group  | 
 Vector | 
getItems()
Return Vector of all IOItems currently added to this group.  | 
 String | 
getName()
Get the name of this group  | 
 int | 
getUpdateRate()
 | 
 boolean | 
isActive()
 | 
 void | 
readAllItems(int dataSource)
Read the item value for all items in this group.  | 
 void | 
removeIOListener(IOListener l)
Remove a listener for IO events related to this group  | 
 void | 
removeItem(IOItem ioi)
Remove an item from this group  | 
 void | 
setActive(boolean b)
Turn off/on automatical updating from the IOItems in this group depedning on the value of b  | 
 void | 
setDescription(String text)
Set descriptive text for this group.  | 
| Method Detail | 
public void addItem(IOItem ioi)
ioi - The item to add
public void removeItem(IOItem ioi)
                throws RbxIOException
ioi - The item to remove
RbxIOException - thrown if it was not possible to remove the specified item, for
  instance if the specified item is not a member of this group.public IOItem getItem(String actionCmdName)
actionCmdName - Name of the item to return
public Vector getItems()
public void addIOListener(IOListener l)
public void removeIOListener(IOListener l)
public int getUpdateRate()
public void setActive(boolean b)
b - if true IOItems in this group will fire the valueChanged() event
  everytime a value is changedpublic boolean isActive()
public void fireAllItems()
public void fireAllItems(IOListener iol)
public void fireAllItems(IOListener iol,
                         boolean performRead,
                         int dataSource)
                  throws RbxIOException
IOListener.onValueChanged(dk.opi.io.IOItem) notification to
 the specified IOListener.  This method is usefull right after items have been added
 to the group. A call to this method will initialize your application with the
 current values.
iol - the listener to notifyperformRead - if true a read will be performed for all items in the group
  prior to firing of the event. In combination with a dataSource value of
  DEVICE_READ this will ensure that the onValueChanged() is fired with the most
  recent and up to date value.dataSource - The source to read from, ie. CACHE_READ or DEVICE_READ. Also see
  IOItem.readValue(int). Ignored unless performRead is
  set to true
RbxIOException - Will only be thrown if performRead is true and the read operation
  for some reason failspublic String getName()
public void setDescription(String text)
text - the description.getDescription()public String getDescription()
setDescription(java.lang.String)
public void readAllItems(int dataSource)
                  throws RbxIOException
dataSource - The source to read from, ie. IOItem.CACHE_READ or IOItem.DEVICE_READ.
  A CACHE read will obtain the current value for the item from the device
  server cache (eg. OPC server). This is fast but the value is only
  updated with the specified update rate, ie. a CACHE read is accurate to
  within the 'UpdateRate' of the group.RbxIOException - thrown if one or more read operations failed.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||