org.flexiblepower.efi.buffer
public class ActuatorBehaviour extends java.lang.Object
RunningMode
s that use
a FillLevelFunction
to describe each one. Each FillLevelFunction
contains for every fill level of the
buffer a RunningModeBehaviour
. The RunningModeBehaviour
describes the effect on the buffer when this
RunningMode
is selected and the consumed or produced commodities.Modifier and Type | Class and Description |
---|---|
static class |
ActuatorBehaviour.Builder
This helper class should be used to easily define a
ActuatorBehaviour . |
Constructor and Description |
---|
ActuatorBehaviour(int id,
java.util.Collection<RunningMode<FillLevelFunction<RunningModeBehaviour>>> runningModes)
Construct an ActuatorBehaviour instance.
|
Modifier and Type | Method and Description |
---|---|
static ActuatorBehaviour.Builder |
create(int id) |
int |
getId() |
double |
getLowerBound() |
RunningMode<FillLevelFunction<RunningModeBehaviour>> |
getRunningMode(int id) |
java.util.Collection<RunningMode<FillLevelFunction<RunningModeBehaviour>>> |
getRunningModes() |
double |
getUpperBound() |
public ActuatorBehaviour(int id, java.util.Collection<RunningMode<FillLevelFunction<RunningModeBehaviour>>> runningModes)
id
- Device unique identifier for this actuatorrunningModes
- Collection describing all the supported runningModes of thisjava.lang.IllegalArgumentException
- Thrown when there are multiple RunningMode with the same identifier or when a Transition
has
an unknown RunningMode as targetpublic static ActuatorBehaviour.Builder create(int id)
id
- Identifier of this ActuatorActuatorBehaviour.Builder
object that can be used to easily create the ActuatorBehaviour
public int getId()
Actuator
that has been registered.public java.util.Collection<RunningMode<FillLevelFunction<RunningModeBehaviour>>> getRunningModes()
public RunningMode<FillLevelFunction<RunningModeBehaviour>> getRunningMode(int id)
id
- The identifier of the RunningMode
RunningMode
public double getLowerBound()
public double getUpperBound()