fr.emn.reactiveinput.descriptor
Class DDAnd

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

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

The "And" Device Descriptor

DDAny descriptors are automatically removed from the list.


Field Summary
protected  DeviceDescriptor[] children
           
 
Constructor Summary
DDAnd(DeviceDescriptor[] children)
           
DDAnd(DeviceDescriptor d1, DeviceDescriptor d2)
          Builds a DDAnd with two device descriptors.
DDAnd(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

DDAnd

public DDAnd(DeviceDescriptor[] children)

DDAnd

public DDAnd(DeviceDescriptor d1,
             DeviceDescriptor d2)
Builds a DDAnd with two device descriptors.


DDAnd

public DDAnd(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