Class EngineUtils
java.lang.Object
simEngine.EngineUtils
Utility class used by the simulation engine
- Author:
- Marco Bertoli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodeMeasureType(String type) Decodes the type of a measurestatic StringencodeMeasureType(int type) Encodes the type of a measurestatic booleanisInverseMeasure(int measureType) Returns true if a measure is inverse or false otherwise
-
Constructor Details
-
EngineUtils
public EngineUtils()
-
-
Method Details
-
encodeMeasureType
Encodes the type of a measure- Parameters:
type- number type of the measure- Returns:
- text type of the measure
-
decodeMeasureType
Decodes the type of a measure- Parameters:
type- text type of the measure- Returns:
- number type of the measure
-
isInverseMeasure
public static boolean isInverseMeasure(int measureType) Returns true if a measure is inverse or false otherwise- Parameters:
measureType- the type of measure- Returns:
- true if it is inverse, false otherwise.
-