public interface IClimateManipulatorBuilder
IClimateManipulator| Modifier and Type | Method and Description |
|---|---|
IClimateManipulator |
build()
Creates the manipulator based on the data that was supplied to this builder.
|
IClimateManipulatorBuilder |
setAllowBackwards()
Allows the manipulator to move backwards.(to negate the change value that was supplied by the
Function that as set with setChangeSupplier(BiFunction)). |
IClimateManipulatorBuilder |
setChangeSupplier(java.util.function.BiFunction<ClimateType,IClimateManipulator,java.lang.Float> changeSupplier)
Sets the
BiFunction that supplies the change value of the manipulator. |
IClimateManipulatorBuilder |
setCurrent(IClimateState state)
Sets the state at that the manipulator starts to manipulate.
|
IClimateManipulatorBuilder |
setDefault(IClimateState state)
Sets the default state of this manipulator.
|
IClimateManipulatorBuilder |
setOnFinish(java.util.function.Consumer<IClimateState> onFinish)
Sets the consumer that gets called at
IClimateManipulator.finish(). |
IClimateManipulatorBuilder |
setTarget(IClimateState state)
Sets the targeted state of this manipulator.
|
IClimateManipulatorBuilder |
setType(ClimateType type)
Sets the type of the value that the manipulator should manipulate to the given type.
|
IClimateManipulatorBuilder setType(ClimateType type)
IClimateManipulatorBuilder setAllowBackwards()
Function that as set with setChangeSupplier(BiFunction)).IClimateManipulatorBuilder setOnFinish(java.util.function.Consumer<IClimateState> onFinish)
IClimateManipulator.finish().IClimateManipulatorBuilder setChangeSupplier(java.util.function.BiFunction<ClimateType,IClimateManipulator,java.lang.Float> changeSupplier)
BiFunction that supplies the change value of the manipulator.IClimateManipulatorBuilder setTarget(IClimateState state)
IClimateManipulatorBuilder setDefault(IClimateState state)
IClimateManipulatorBuilder setCurrent(IClimateState state)
IClimateManipulator build()