fr.emn.reactiveinput.descriptor
Class DDAnd
java.lang.Object
fr.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
children
protected DeviceDescriptor[] children
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)
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