Class AlchemistStateObservations
-
- All Implemented Interfaces:
public final class AlchemistStateObservations
Represents the state of an Alchemist simulation at a given time.
-
-
Constructor Summary
Constructors Constructor Description AlchemistStateObservations(Double time)
-
Method Summary
Modifier and Type Method Description final Double
getTime()
final Unit
addObservation(String name, Double value)
Adds an observation for the state. final Double
getObservation(String name)
Returns the value of the observation with the given name. final Double
getObservation(Integer id)
Returns the value of the observation with the given id. -
-
Constructor Detail
-
AlchemistStateObservations
AlchemistStateObservations(Double time)
- Parameters:
time
- the time at which the state is referred to.
-
-
Method Detail
-
addObservation
final Unit addObservation(String name, Double value)
Adds an observation for the state.
- Parameters:
name
- the name of the observationvalue
- the value for such observation
-
getObservation
final Double getObservation(String name)
Returns the value of the observation with the given name.
-
getObservation
final Double getObservation(Integer id)
Returns the value of the observation with the given id.
-
-
-
-