Interface DynamicModelEnvironment<T extends MguiNumber>

Type Parameters:
T - Number type for this environment
All Superinterfaces:
CleanableObject, java.lang.Cloneable, InterfaceObject, NamedObject, TimeStepListener, TreeObject, Updateable
All Known Implementing Classes:
SimpleEnvironment

public interface DynamicModelEnvironment<T extends MguiNumber>
extends TimeStepListener, Updateable, java.lang.Cloneable, InterfaceObject
Interface for a dynamic model's environment. An environment controls the external input to model components, and specifies state variables which respond to events from output components. Also specifies getters and setters for
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Method Details

    • handleOutputEvent

      void handleOutputEvent​(DynamicModelOutputEvent e)
    • addSensor

      void addSensor​(DynamicModelEnvironmentSensor s)
    • removeSensor

      void removeSensor​(DynamicModelEnvironmentSensor s)
    • addListener

      void addListener​(DynamicModelEnvironmentListener l)
    • removeListener

      void removeListener​(DynamicModelEnvironmentListener l)
    • getInputState

      double[] getInputState()
    • getInputState

      double getInputState​(int i)
    • setInputName

      void setInputName​(int index, java.lang.String name)
    • setInputNames

      void setInputNames​(java.util.List<java.lang.String> names)
    • setInputSize

      void setInputSize​(int s)
    • setObservableState

      void setObservableState​(double[] values)
    • setObservableState

      void setObservableState​(int index, double value)
    • getObservableState

      double[] getObservableState()
    • getObservableState

      double getObservableState​(int i)
    • getClock

      double getClock()
    • setObservableName

      void setObservableName​(int index, java.lang.String name)
    • setObservableNames

      void setObservableNames​(NameMap names)
    • setObservableSize

      void setObservableSize​(int s)
    • removeObservableName

      void removeObservableName​(java.lang.String name)
    • removeObservableName

      void removeObservableName​(int index)
    • getObservableNames

      java.util.List<java.lang.String> getObservableNames()
    • getInputNames

      java.util.List<java.lang.String> getInputNames()
    • getObservableSize

      int getObservableSize()
    • getObservableDataSource

      InterfaceDataSource<T> getObservableDataSource()
    • getInputDataSource

      InterfaceDataSource<T> getInputDataSource()
    • setUpdater

      void setUpdater​(DynamicModelUpdater updater) throws DynamicModelException
      Throws:
      DynamicModelException
    • reset

      void reset()
    • getDataSources

      java.util.List<InterfaceDataSource<T>> getDataSources()