Class PrimitiveValue
java.lang.Object
org.mpi_sws.jmc.runtime.scheduling.SchedulingChoiceValue
org.mpi_sws.jmc.runtime.scheduling.PrimitiveValue
Represents a primitive value that is returned by a strategy.
A concrete implementation of the SchedulingChoiceValue class
Primitive values are one of int, string or boolean.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrimitiveValue
-
-
Method Details
-
asInteger
public int asInteger() -
asString
-
asBoolean
public boolean asBoolean() -
toJson
public com.google.gson.JsonElement toJson()Description copied from class:SchedulingChoiceValueConverts this value to a JSON object.- Specified by:
toJsonin classSchedulingChoiceValue- Returns:
- the JSON representation of this value
-
type
Description copied from class:SchedulingChoiceValueReturns the type of this value.Default types (int|string) have inbuilt adapters.
This is used to identify the type of value in the JSON representation.
- Specified by:
typein classSchedulingChoiceValue- Returns:
- the type of this value
-