public class ScheduleTransformerKeyValueConfiguration
extends java.lang.Object
implements java.io.Serializable
Schedule
to a key value structure.Modifier and Type | Class and Description |
---|---|
static class |
ScheduleTransformerKeyValueConfiguration.DeltaMechanism
The possible DeltaMechanisms that create a value in a Schedule.
|
Constructor and Description |
---|
ScheduleTransformerKeyValueConfiguration()
Instantiates a new schedule transformer key value configuration (constructor for the serialisation).
|
ScheduleTransformerKeyValueConfiguration(java.lang.Float deltaPercentage,
java.lang.Long timePeriodForLiveBit)
Instantiates a new schedule transformer key value configuration for a percentage mechanism.
|
ScheduleTransformerKeyValueConfiguration(java.lang.Integer deltaAbsoluteInWatt,
java.lang.Long timePeriodForLiveBit)
Instantiates a new schedule transformer key value configuration for an absolute Watt value.
|
Modifier and Type | Method and Description |
---|---|
ScheduleTransformerKeyValueConfiguration |
getCopy()
Returns a copy of the current instance.
|
int |
getDeltaAbsoluteWatt()
Gets the delta absolute in Watt.
|
ScheduleTransformerKeyValueConfiguration.DeltaMechanism |
getDeltaMechanism()
Returns the current type of the delta mechanism.
|
float |
getDeltaPercentage()
Returns the delta in percent that is used in order to determine a new schedule value.
|
long |
getTimePeriodForLiveBit()
Returns the time period for the waiting period of live bits.
|
void |
setDeltaAbsoluteWatt(int deltaAbsoluteWatt)
Sets the delta absolute Watt.
|
void |
setDeltaMechanism(ScheduleTransformerKeyValueConfiguration.DeltaMechanism deltaMechanism)
Sets the type of the current delta mechanism.
|
void |
setDeltaPercentage(float deltaPercentage)
Sets the delta in percent that is used in order to determine a new schedule value.
|
void |
setTimePeriodForLiveBit(long timePeriodForLiveBit)
Sets the time period for the waiting period of live bits.
|
public ScheduleTransformerKeyValueConfiguration()
public ScheduleTransformerKeyValueConfiguration(java.lang.Float deltaPercentage, java.lang.Long timePeriodForLiveBit)
deltaPercentage
- the delta percentagetimePeriodForLiveBit
- the time period for live bitScheduleTransformerKeyValueConfiguration.DeltaMechanism.Percentage
public ScheduleTransformerKeyValueConfiguration(java.lang.Integer deltaAbsoluteInWatt, java.lang.Long timePeriodForLiveBit)
deltaAbsoluteInWatt
- the delta absolute in watttimePeriodForLiveBit
- the time period for live bitScheduleTransformerKeyValueConfiguration.DeltaMechanism.Absolute
public void setDeltaMechanism(ScheduleTransformerKeyValueConfiguration.DeltaMechanism deltaMechanism)
deltaMechanism
- the new delta mechanismpublic ScheduleTransformerKeyValueConfiguration.DeltaMechanism getDeltaMechanism()
public int getDeltaAbsoluteWatt()
public void setDeltaAbsoluteWatt(int deltaAbsoluteWatt)
deltaAbsoluteWatt
- the deltaAbsolutWatts to setpublic float getDeltaPercentage()
public void setDeltaPercentage(float deltaPercentage)
deltaPercentage
- the deltaPercent to setpublic void setTimePeriodForLiveBit(long timePeriodForLiveBit)
timePeriodForLiveBit
- the new time period for live bitpublic long getTimePeriodForLiveBit()
public ScheduleTransformerKeyValueConfiguration getCopy()