fr.emn.reactiveinput.descriptor
Class DDProperties

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

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

This is a special descriptor that is used to set the properties of a device. It contains all devices.

This descriptor must ALWAYS have a DDAnd as parent. When its contains() method is called on a device (i.e. when all previous conditions in DDAnd match), it sets some properties on the device.

The string argument is a list of properties, for example:

MinFreq: 500.5; MaxFreq: 1000; VocabArray: [Yes, No];


Constructor Summary
DDProperties(Device device)
          Creates a DDProperties with all device properties which values are different from its original prototype.
DDProperties(java.lang.String propertyValues)
           
 
Method Summary
 boolean contains(Device d)
          TO TEST
 DeviceDescriptor[] getChildren()
           
 java.lang.String getString()
          Returns the string form of this descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDProperties

public DDProperties(Device device)
Creates a DDProperties with all device properties which values are different from its original prototype.


DDProperties

public DDProperties(java.lang.String propertyValues)
Method Detail

contains

public boolean contains(Device d)
TO TEST

Specified by:
contains in interface DeviceDescriptor

getChildren

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

getString

public java.lang.String getString()
Description copied from interface: DeviceDescriptor
Returns the string form of this descriptor.

Returns null if the descriptor is not valid (in all environments).

Specified by:
getString in interface DeviceDescriptor