Class AbstractAlchemistSimulationAdapter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double getTime() Get the simulation time.
      final Double rval(String obs) Get the value for the given observation.
      final Double rval(Integer obsId) Get the value for the given observation.
      final Unit doStep() Perform a simulation step.
      final Unit performWholeSimulation() Perform the whole simulation.
      abstract Double getObsValue(Integer obsId) Get the value of the observation with the given id.
      abstract Double getObsValue(String obs) Get the value of the observation with the given name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractAlchemistSimulationAdapter

        AbstractAlchemistSimulationAdapter(Simulation<Object, Void> simulation)
        Parameters:
        simulation - the simulation to be wrapped.
    • Method Detail

      • rval

         final Double rval(String obs)

        Get the value for the given observation.

        Parameters:
        obs - the name of the observation
      • rval

         final Double rval(Integer obsId)

        Get the value for the given observation.

        Parameters:
        obsId - the id of the observation
      • doStep

         final Unit 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.

      • getObsValue

         abstract Double getObsValue(String obs)

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