fr.emn.reactiveinput.descriptor
Class DDOr

java.lang.Object
  extended byfr.emn.reactiveinput.descriptor.DDOr
All Implemented Interfaces:
DeviceDescriptor, MetaDD

public class DDOr
extends java.lang.Object
implements DeviceDescriptor, MetaDD

The "Or" Device Descriptor

PENDING: Smart children analysis (handle DDAny).


Field Summary
protected  DeviceDescriptor[] children
           
 
Constructor Summary
DDOr(DeviceDescriptor[] children)
           
DDOr(java.lang.String string)
           
 
Method Summary
 boolean contains(Device d)
          Returns true if all children contains the device.
 DeviceDescriptor[] getChildren()
           
 java.lang.String getString()
          Returns the descriptor's string.
static DeviceDescriptor[] simplify(DeviceDescriptor[] children)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected DeviceDescriptor[] children
Constructor Detail

DDOr

public DDOr(DeviceDescriptor[] children)

DDOr

public DDOr(java.lang.String string)
Method Detail

simplify

public static DeviceDescriptor[] simplify(DeviceDescriptor[] children)

contains

public boolean contains(Device d)
Returns true if all children contains the device. ErrorDescriptors are ignored.

Specified by:
contains in interface DeviceDescriptor

getChildren

public DeviceDescriptor[] getChildren()
Specified by:
getChildren in interface MetaDD

getString

public java.lang.String getString()
Returns the descriptor's string.

Specified by:
getString in interface DeviceDescriptor