Package mgui.models.dynamic
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 Summary
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Method Details
-
handleOutputEvent
-
addSensor
-
removeSensor
-
addListener
-
removeListener
-
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
-
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
- Throws:
DynamicModelException
-
reset
void reset() -
getDataSources
java.util.List<InterfaceDataSource<T>> getDataSources()
-