Package network.aika.fields
Class SwitchField
java.lang.Object
network.aika.fields.FieldListener
network.aika.fields.AbstractBiFunction
network.aika.fields.SwitchField
- All Implemented Interfaces:
DoubleFieldInput
,DoubleFieldOutput
,FieldInput
,FieldOutput
- Author:
- Lukas Molzberger
-
Field Summary
Fields inherited from class network.aika.fields.AbstractBiFunction
currentArgument, in1, in2
-
Constructor Summary
ConstructorDescriptionSwitchField
(String label, DoubleFieldInterface in1, boolean register1, DoubleFieldInterface in2, boolean register2, BooleanSupplier test) -
Method Summary
Methods inherited from class network.aika.fields.AbstractBiFunction
getLabel, isInitialized, triggerUpdate
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, wait, wait, wait
Methods inherited from interface network.aika.fields.DoubleFieldInput
addAndTriggerUpdate, setAndTriggerUpdate
Methods inherited from interface network.aika.fields.FieldInput
getLabel
Methods inherited from interface network.aika.fields.FieldOutput
addFieldListener
-
Constructor Details
-
SwitchField
public SwitchField(String label, DoubleFieldInterface in1, boolean register1, DoubleFieldInterface in2, boolean register2, BooleanSupplier test)
-
-
Method Details
-
propagateInitialValue
public void propagateInitialValue()- Specified by:
propagateInitialValue
in interfaceFieldOutput
- Overrides:
propagateInitialValue
in classAbstractBiFunction
-
set
public boolean set(double v) - Specified by:
set
in interfaceDoubleFieldInput
-
add
public boolean add(double u) - Specified by:
add
in interfaceDoubleFieldInput
-
triggerUpdate
public void triggerUpdate()- Specified by:
triggerUpdate
in interfaceFieldInput
-
getCurrentValue
public double getCurrentValue()- Specified by:
getCurrentValue
in interfaceDoubleFieldOutput
-
getNewValue
public double getNewValue()- Specified by:
getNewValue
in interfaceDoubleFieldOutput
-
updateAvailable
public boolean updateAvailable()- Specified by:
updateAvailable
in interfaceFieldOutput
- Overrides:
updateAvailable
in classAbstractBiFunction
-
getUpdate
public double getUpdate()- Specified by:
getUpdate
in interfaceDoubleFieldOutput
-
toString
- Overrides:
toString
in classAbstractBiFunction
-