Package network.aika.fields
Class ThresholdOperator
java.lang.Object
network.aika.fields.FieldListener
network.aika.fields.ThresholdOperator
- All Implemented Interfaces:
BooleanFieldOutput
,FieldOutput
- Author:
- Lukas Molzberger
-
Constructor Summary
ConstructorDescriptionThresholdOperator
(String label, double threshold, DoubleFieldOutput in) ThresholdOperator
(String label, double threshold, DoubleFieldOutput in, BooleanFieldInput... out) -
Method Summary
Methods inherited from class network.aika.fields.FieldListener
addFieldListener, propagateUpdate, registerOutputs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface network.aika.fields.FieldOutput
addFieldListener
-
Constructor Details
-
ThresholdOperator
-
ThresholdOperator
public ThresholdOperator(String label, double threshold, DoubleFieldOutput in, BooleanFieldInput... out)
-
-
Method Details
-
getCurrentValue
public boolean getCurrentValue()- Specified by:
getCurrentValue
in interfaceBooleanFieldOutput
-
getNewValue
public boolean getNewValue()- Specified by:
getNewValue
in interfaceBooleanFieldOutput
-
getLabel
- Specified by:
getLabel
in interfaceFieldOutput
-
updateAvailable
public boolean updateAvailable()- Specified by:
updateAvailable
in interfaceFieldOutput
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceFieldOutput
-
propagateInitialValue
public void propagateInitialValue()- Specified by:
propagateInitialValue
in interfaceFieldOutput
- Specified by:
propagateInitialValue
in classFieldListener
-