fr.emn.reactiveinput.devices
Class DConst

java.lang.Object
  extended byfr.emn.reactiveinput.AbstractDevice
      extended byfr.emn.reactiveinput.AbstractMutableDevice
          extended byfr.emn.reactiveinput.devices.DConst
All Implemented Interfaces:
Device, MutableDevice, Processor

public class DConst
extends AbstractMutableDevice

A constant device. This device accepts several constant types. Use setType() to choose the constant value.


Field Summary
 Out out
           
 
Fields inherited from class fr.emn.reactiveinput.AbstractDevice
currIndex, ins, outs
 
Fields inherited from interface fr.emn.reactiveinput.Device
AUTO_PROPERTIES
 
Constructor Summary
DConst()
           
 
Method Summary
 boolean getBooleanValue()
          Extern parameter
 double getDoubleValue()
          Extern parameter
 int getIntValue()
          Extern parameter
 Slot[] getMutationTriggers()
          Returns nothing
 java.lang.Object getObjectValue()
          Extern parameter
 java.lang.String[] getProperties()
          Give an order to the properties
 java.lang.String getStringValue()
          Extern parameter
 SlotType getType()
          Extern parameter
 void init()
          Initializes device's output values.
 void mutate()
          This method is only called by this.setType() since this device has no mutation triggering slot.
 void setBooleanValue(boolean value)
          Extern parameter
 void setDoubleValue(double value)
          Extern parameter
 void setIntValue(int value)
          Extern parameter
 void setObjectValue(java.lang.Object value)
          Extern parameter
 void setStringValue(java.lang.String value)
          Extern parameter
 void setType(SlotType type)
          Extern parameter
 
Methods inherited from class fr.emn.reactiveinput.AbstractMutableDevice
addMutableIn, addMutableIn, addMutableIn, addMutableOut, addMutableOut, remove
 
Methods inherited from class fr.emn.reactiveinput.AbstractDevice
addIn, addIn, addOut, close, copy, doDisable, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, hasExternalInput, hasExternalOutput, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, open, setEnabled, setInfo, setInfo, setLastError, setName, update
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.emn.reactiveinput.Device
close, copy, getError, getInfo, getIns, getName, getOuts, hasExternalInput, hasExternalOutput, isCopiable, isOpenable, open, setEnabled
 

Field Detail

out

public final Out out
Constructor Detail

DConst

public DConst()
Method Detail

getBooleanValue

public boolean getBooleanValue()
Extern parameter


getDoubleValue

public double getDoubleValue()
Extern parameter


getIntValue

public int getIntValue()
Extern parameter


getMutationTriggers

public Slot[] getMutationTriggers()
Returns nothing

Specified by:
getMutationTriggers in interface MutableDevice
Specified by:
getMutationTriggers in class AbstractMutableDevice

getObjectValue

public java.lang.Object getObjectValue()
Extern parameter


getProperties

public java.lang.String[] getProperties()
Give an order to the properties

Specified by:
getProperties in interface Device
Overrides:
getProperties in class AbstractDevice

getStringValue

public java.lang.String getStringValue()
Extern parameter


getType

public SlotType getType()
Extern parameter


init

public void init()
Description copied from class: AbstractDevice
Initializes device's output values.

Subclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors. By default, this method calls update(). Subclass this method if you'd like to make a specific initialization routine.

Specified by:
init in interface Processor
Overrides:
init in class AbstractDevice
See Also:
Processor.init()

mutate

public void mutate()
This method is only called by this.setType() since this device has no mutation triggering slot.

Specified by:
mutate in interface MutableDevice
Specified by:
mutate in class AbstractMutableDevice

setBooleanValue

public void setBooleanValue(boolean value)
Extern parameter


setDoubleValue

public void setDoubleValue(double value)
Extern parameter


setIntValue

public void setIntValue(int value)
Extern parameter


setObjectValue

public void setObjectValue(java.lang.Object value)
Extern parameter


setStringValue

public void setStringValue(java.lang.String value)
Extern parameter


setType

public void setType(SlotType type)
Extern parameter