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