Package microsim.statistics.functions
Class MinTraceFunction.Float
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.MinTraceFunction
microsim.statistics.functions.MinTraceFunction.Float
- All Implemented Interfaces:
EventListener,IDoubleSource,IFloatSource,IUpdatableSource
- Enclosing class:
- MinTraceFunction
An implementation of the MemorylessSeries class, which manages float type data sources.
- Author:
- Michele Sonnessa and Ross Richardson
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.functions.MinTraceFunction
MinTraceFunction.Double, MinTraceFunction.Float, MinTraceFunction.Integer, MinTraceFunction.Long, MinTraceFunction.VariablesNested classes/interfaces inherited from interface microsim.statistics.IFloatSource
IFloatSource.Variables -
Field Summary
FieldsFields inherited from class microsim.statistics.functions.MinTraceFunction
countFields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRead the source values and update statistics.doublegetDoubleValue(Enum<?> valueID) Return the result of a given statistic.floatgetFloatValue(Enum<?> valueID) Return the result of a given statistic.floatReturn the last double value read from the source object.floatgetMin()The minimum function.Methods inherited from class microsim.statistics.functions.MinTraceFunction
onEventMethods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, setCheckingTime, updateSource
-
Field Details
-
min
protected float min -
target
-
-
Constructor Details
-
Float
Create a basic statistic probe on a IDblSource object.- Parameters:
source- The IDblSource object.valueID- The value identifier defined by source object.
-
Float
Create a basic statistic probe on a generic object.- Parameters:
source- A generic source object.valueName- The name of the field or the method returning the variable to be probed.getFromMethod- Specifies if valueName is a method or a property value.
-
-
Method Details
-
applyFunction
public void applyFunction()Read the source values and update statistics.- Overrides:
applyFunctionin classMinTraceFunction
-
getDoubleValue
Return the result of a given statistic.- Specified by:
getDoubleValuein interfaceIDoubleSource- Parameters:
valueID- One of the F_ constants representing available statistics.- Returns:
- The computed value.
- Throws:
UnsupportedOperationException- If the given valueID is not supported.
-
getFloatValue
Return the result of a given statistic.- Specified by:
getFloatValuein interfaceIFloatSource- Parameters:
valueID- One of the F_ constants representing available statistics.- Returns:
- The computed value.
- Throws:
UnsupportedOperationException- If the given valueID is not supported.
-
getLastValue
public float getLastValue()Return the last double value read from the source object.- Returns:
- A double value collected at the last reading operation.
-
getMin
public float getMin()The minimum function.- Returns:
- The minimum value.
-