public class InputMeasurementHelper
extends java.lang.Object
InputMeasurement
s.Constructor and Description |
---|
InputMeasurementHelper() |
Modifier and Type | Method and Description |
---|---|
static InputMeasurement |
add(InputMeasurement im1,
InputMeasurement im2)
Adds the values of the specified two
InputMeasurement s according to the
time ranges of both series and the settings of the first input measurement. |
static void |
addAllMeasurements(InputMeasurement imResult,
InputMeasurement imToAdd)
Adds all measurements .
|
static InputMeasurement |
applyDataRepetitionToInputMeasurement(InputMeasurement im,
DataRepetition dataRepetition,
long timeOfEvaluationStart,
long timeOfEvaluationEnd)
Applies the
DataRepetition to the specified InputMeasurement . |
static InputMeasurement |
copyInputMeasurement(InputMeasurement im,
long offset)
Copies the specified
InputMeasurement and applies an offset to the time values. |
static InputMeasurementByTime |
copyInputMeasurementByTime(InputMeasurementByTime imbt)
Copies the specified
InputMeasurementByTime . |
static InputMeasurementByTime |
createInputMeasurementByTime(long newTime,
FixedVariable valueToAdd)
Creates the input measurement by time.
|
static FixedVariable |
getInputMeasurement4PointInTime(long pointInTime,
InputMeasurement im,
DataRepetition dataRepetition)
Gets the actual input measurement as
FixedVariable for the specified point in time. |
static java.util.TreeSet<java.lang.Long> |
getSortedAndUniqueTimeEvents(InputMeasurement im)
Gets the sorted time events of the specified InputMeasurement.
|
static java.util.TreeSet<java.lang.Long> |
getSortedAndUniqueTimeEvents(InputMeasurement im,
java.util.TreeSet<java.lang.Long> timeEvents)
Gets the sorted time events of the specified InputMeasurement
and the already know events from the second parameter.
|
static java.lang.String |
toString(InputMeasurement im)
Return the specified InputMeasurement as string.
|
public static void addAllMeasurements(InputMeasurement imResult, InputMeasurement imToAdd)
public static InputMeasurement add(InputMeasurement im1, InputMeasurement im2)
InputMeasurement
s according to the
time ranges of both series and the settings of the first input measurement.im1
- the first input measurement ('variableID' and 'step series' will be taken from here)im2
- the second input measurementpublic static java.util.TreeSet<java.lang.Long> getSortedAndUniqueTimeEvents(InputMeasurement im)
im
- the InputMeasurementpublic static java.util.TreeSet<java.lang.Long> getSortedAndUniqueTimeEvents(InputMeasurement im, java.util.TreeSet<java.lang.Long> timeEvents)
im
- the InputMeasurementtimeEvents
- the time eventspublic static FixedVariable getInputMeasurement4PointInTime(long pointInTime, InputMeasurement im, DataRepetition dataRepetition)
FixedVariable
for the specified point in time.pointInTime
- the point in timeim
- the InputMeasurement
dataRepetition
- the data repetitionpublic static InputMeasurement applyDataRepetitionToInputMeasurement(InputMeasurement im, DataRepetition dataRepetition, long timeOfEvaluationStart, long timeOfEvaluationEnd)
DataRepetition
to the specified InputMeasurement
.im
- the InputMeasurement
dataRepetition
- the DataRepetition
timeOfEvaluationStart
- the time of the evaluationtimeOfEvaluationEnd
- the end time of evaluationInputMeasurement
public static InputMeasurement copyInputMeasurement(InputMeasurement im, long offset)
InputMeasurement
and applies an offset to the time values.im
- the InputMeasurement
to copyoffset
- the offset for the time valuespublic static InputMeasurementByTime copyInputMeasurementByTime(InputMeasurementByTime imbt)
InputMeasurementByTime
.imbt
- the InputMeasurementByTime
instance to copyInputMeasurementByTime
public static java.lang.String toString(InputMeasurement im)
im
- the InputMeasurementpublic static InputMeasurementByTime createInputMeasurementByTime(long newTime, FixedVariable valueToAdd)
newTime
- the new timevalueToAdd
- the value to add