Class JavaSimplaceWrapper

java.lang.Object
net.simplace.sim.wrapper.SimplaceWrapper
net.simplace.sim.wrapper.JavaSimplaceWrapper

public class JavaSimplaceWrapper extends SimplaceWrapper
SimplaceWrapper for Java clients that step the first simulation of the queue directly and access its variables as FWSimVariable objects instead of DataContainers.
  • Constructor Details

    • JavaSimplaceWrapper

      public JavaSimplaceWrapper()
  • Method Details

    • initializeSimulation

      public void initializeSimulation()
      Starts the output writers and marks the simulations as initialized; done automatically by SimplaceWrapper.step() or SimplaceWrapper.run().
    • stepSimple

      public boolean stepSimple()
      Calculates one step of the first simulation of the queue. Unlike SimplaceWrapper.step() no initialization is done and the simulation is not finished at the end (see finishSimulation()).
      Returns:
      true if the simulation continues, false if the end date has been reached
    • getSimVariable

      public FWSimVariable<?> getSimVariable(String aKey)
      Parameters:
      aKey - name of the variable
      Returns:
      the variable of the first simulation of the queue (see FWSimVarMap.getSimVariable(String))
    • getCurrentDate

      public LocalDateTime getCurrentDate()
      Returns:
      the current date of the first simulation of the queue
    • getEndDate

      public LocalDateTime getEndDate()
      Returns:
      the end date of the first simulation of the queue
    • finishSimulation

      public void finishSimulation()
      Finishes the first simulation of the queue (writes its outputs); needed if it is stopped before the end or stepped with stepSimple(). SimplaceWrapper.step() does this automatically at the end.