Package network.aika.fields
Class AbstractBiFunction
java.lang.Object
network.aika.fields.FieldListener
network.aika.fields.AbstractBiFunction
- All Implemented Interfaces:
DoubleFieldOutput
,FieldOutput
- Direct Known Subclasses:
BiFunction
,FieldDivision
,FieldMultiplication
,SwitchField
- Author:
- Lukas Molzberger
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected DoubleFieldOutput
protected DoubleFieldOutput
-
Constructor Summary
ConstructorDescriptionAbstractBiFunction
(String label, DoubleFieldOutput in1, boolean register1, DoubleFieldOutput in2, boolean register2) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
boolean
void
toString()
void
triggerUpdate
(int arg) boolean
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.DoubleFieldOutput
getCurrentValue, getNewValue, getUpdate
Methods inherited from interface network.aika.fields.FieldOutput
addFieldListener
-
Field Details
-
in1
-
in2
-
currentArgument
protected int currentArgument
-
-
Constructor Details
-
AbstractBiFunction
public AbstractBiFunction(String label, DoubleFieldOutput in1, boolean register1, DoubleFieldOutput in2, boolean register2)
-
-
Method Details
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceFieldOutput
-
propagateInitialValue
public void propagateInitialValue()- Specified by:
propagateInitialValue
in interfaceFieldOutput
- Specified by:
propagateInitialValue
in classFieldListener
-
getLabel
- Specified by:
getLabel
in interfaceFieldOutput
-
triggerUpdate
public void triggerUpdate(int arg) -
updateAvailable
public boolean updateAvailable()- Specified by:
updateAvailable
in interfaceFieldOutput
-
toString
-