org.openmodelica.simulation.core.simulationdata
Class SimulationResultManager

java.lang.Object
  extended by java.util.Observable
      extended by org.openmodelica.simulation.core.simulationdata.SimulationResultManager

public class SimulationResultManager
extends java.util.Observable

The Result Mananger stores all calculated simulation data from a model. This is the main storing and organization unit used by Transfer to store data and all views and plots to get result values.

Author:
EADS Innovation Works, Parham Vasaiely, Parham.Vasaiely@gmx.de

Constructor Summary
SimulationResultManager()
           
 
Method Summary
 java.lang.Double getActSimulationTime()
          The Actual simulation time is to synchronize the views and with each other, with the result manager and the Transfer Threads
 java.lang.Number getValueForFullQualifiedName(java.lang.Double time, java.lang.String fullQualifiedName)
          A property value at a specified time can be requested by asking for its value with its full qualified name.
 void setActSimulationTime(java.lang.Double actSimulationTime)
          The Actual simulation time is to synchronize the views and with each other, with the result manager and the Transfer Threads
 void setResultsForTime(java.lang.Double time, java.util.Map<java.lang.String,java.lang.Number> properties)
          Stores results for a specific time step and notifies all observers
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationResultManager

public SimulationResultManager()
Method Detail

getActSimulationTime

public java.lang.Double getActSimulationTime()
The Actual simulation time is to synchronize the views and with each other, with the result manager and the Transfer Threads

Returns:
the actSimulationTime value as a double value

setActSimulationTime

public void setActSimulationTime(java.lang.Double actSimulationTime)
The Actual simulation time is to synchronize the views and with each other, with the result manager and the Transfer Threads

Parameters:
actSimulationTime -

getValueForFullQualifiedName

public java.lang.Number getValueForFullQualifiedName(java.lang.Double time,
                                                     java.lang.String fullQualifiedName)
A property value at a specified time can be requested by asking for its value with its full qualified name.

Parameters:
time - Step time which associates all results for this time step
fullQualifiedName - The unique identifier for a property
Returns:
A Number with the value corresponding to a property name

setResultsForTime

public void setResultsForTime(java.lang.Double time,
                              java.util.Map<java.lang.String,java.lang.Number> properties)
Stores results for a specific time step and notifies all observers

Parameters:
time - Step time which associates all results for this time step
properties - A Modelica Property for a specific time step