|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.emn.reactiveinput.AbstractDevice
fr.emn.reactiveinput.AbstractMutableDevice
fr.emn.reactiveinput.devices.DConst
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 |
public final Out out
| Constructor Detail |
public DConst()
| Method Detail |
public boolean getBooleanValue()
public double getDoubleValue()
public int getIntValue()
public Slot[] getMutationTriggers()
getMutationTriggers in interface MutableDevicegetMutationTriggers in class AbstractMutableDevicepublic java.lang.Object getObjectValue()
public java.lang.String[] getProperties()
getProperties in interface DevicegetProperties in class AbstractDevicepublic java.lang.String getStringValue()
public SlotType getType()
public void init()
AbstractDeviceSubclass 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.
init in interface Processorinit in class AbstractDeviceProcessor.init()public void mutate()
mutate in interface MutableDevicemutate in class AbstractMutableDevicepublic void setBooleanValue(boolean value)
public void setDoubleValue(double value)
public void setIntValue(int value)
public void setObjectValue(java.lang.Object value)
public void setStringValue(java.lang.String value)
public void setType(SlotType type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||