Class JavaSimplaceWrapper
java.lang.Object
net.simplace.sim.wrapper.SimplaceWrapper
net.simplace.sim.wrapper.JavaSimplaceWrapper
SimplaceWrapper for Java clients that step the first simulation of the queue directly and access its
variables as FWSimVariable objects instead of DataContainers.-
Field Summary
Fields inherited from class SimplaceWrapper
iCurrentSession, iInitializedSimulations, iSimulationsCount, iSimulationsQueue, isSimulationInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFinishes the first simulation of the queue (writes its outputs); needed if it is stopped before the end or stepped withstepSimple().getSimVariable(String aKey) voidStarts the output writers and marks the simulations as initialized; done automatically bySimplaceWrapper.step()orSimplaceWrapper.run().booleanCalculates one step of the first simulation of the queue.Methods inherited from class SimplaceWrapper
createSimulation, getDirectories, getResult, getSimulationIDs, getSlotCount, initializeSpecificSimulation, initSimulations, prepareSession, prepareSession, registerModelListener, registerOutputListener, removeModelListener, removeOutputListener, resetSimulationQueue, run, run, runSimulations, runSimulations, setAllSimulationValues, setCheckLevel, setDirectories, setLogLevel, setProjectLines, setProjectLines, setSimulationValues, setSimulationValues, setSlotCount, setSpecificSimulationValues, shutDown, step, step, step, step, step, step, step, step, stepAll, stepAll, stepAll, stepAll, stepAll, stepAll, stepAll, stepAll, stepAll, stepSpecific, stepSpecific, stepSpecific, stepSpecific, stepSpecific, stepSpecific, stepSpecific, stepSpecific
-
Constructor Details
-
JavaSimplaceWrapper
public JavaSimplaceWrapper()
-
-
Method Details
-
initializeSimulation
public void initializeSimulation()Starts the output writers and marks the simulations as initialized; done automatically bySimplaceWrapper.step()orSimplaceWrapper.run(). -
stepSimple
public boolean stepSimple()Calculates one step of the first simulation of the queue. UnlikeSimplaceWrapper.step()no initialization is done and the simulation is not finished at the end (seefinishSimulation()).- Returns:
trueif the simulation continues,falseif the end date has been reached
-
getSimVariable
- Parameters:
aKey- name of the variable- Returns:
- the variable of the first simulation of the queue (see
FWSimVarMap.getSimVariable(String))
-
getCurrentDate
- Returns:
- the current date of the first simulation of the queue
-
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 withstepSimple().SimplaceWrapper.step()does this automatically at the end.
-