Class AlchemistSimulationAdapterWithExtractor
-
- All Implemented Interfaces:
-
it.unibo.alchemist.multivesta.adapter.AlchemistSimulationAdapter
public final class AlchemistSimulationAdapterWithExtractor extends AbstractAlchemistSimulationAdapter
This is an adapter that allow MultiVesta to interact with Alchemist.
-
-
Constructor Summary
Constructors Constructor Description AlchemistSimulationAdapterWithExtractor(Simulation<Object, Void> simulation, Extractor<Object> extractor)
-
Method Summary
Modifier and Type Method Description final Extractor<Object>
getExtractor()
The extractor to be used to extract data from the simulation. Double
getObsValue(String obs)
Get the value of the observation with the given name. Double
getObsValue(Integer obsId)
Get the value of the observation with the given id. -
-
Constructor Detail
-
AlchemistSimulationAdapterWithExtractor
AlchemistSimulationAdapterWithExtractor(Simulation<Object, Void> simulation, Extractor<Object> extractor)
- Parameters:
simulation
- the simulation to be wrapped.
-
-
Method Detail
-
getExtractor
final Extractor<Object> getExtractor()
The extractor to be used to extract data from the simulation.
-
getObsValue
Double getObsValue(String obs)
Get the value of the observation with the given name. The observations named "time" and "step" have been already handled.
-
getObsValue
Double getObsValue(Integer obsId)
Get the value of the observation with the given id.
-
-
-
-