AbstractAlchemistSimulationAdapter

This is an adapter that allow MultiVesta to interact with Alchemist.

Parameters

simulation

the simulation to be wrapped.

Inheritors

Constructors

Link copied to clipboard
constructor(simulation: Simulation<Any, Nothing>)

Functions

Link copied to clipboard
override fun doStep()

Perform a simulation step. In Alchemist this means that the simulation will be advanced of the number of step needed to reach the next time.

Link copied to clipboard
abstract fun getObsValue(obsId: Int): Double

Get the value of the observation with the given id.

abstract fun getObsValue(obs: String): Double

Get the value of the observation with the given name. The observations named "time" and "step" have been already handled.

Link copied to clipboard
override fun getTime(): Double

Get the simulation time.

Link copied to clipboard
override fun performWholeSimulation()

Perform the whole simulation.

Link copied to clipboard
override fun rval(obsId: Int): Double
override fun rval(obs: String): Double

Get the value for the given observation.