Package mgui.models.environments
Class SimpleEnvironmentObservableDataSource<T extends MguiNumber>
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.environments.AbstractEnvironmentDataSource<T>
mgui.models.environments.SimpleEnvironmentObservableDataSource<T>
- All Implemented Interfaces:
InterfaceObject
,InterfaceDataSource<T>
,InterfaceDataSourceTimeSeries<T>
,InterfaceDataSourceXY<T>
,NamedDataSource
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelEnvironmentSensor
public class SimpleEnvironmentObservableDataSource<T extends MguiNumber> extends AbstractEnvironmentDataSource<T>
Simple data source which updates in response to changes in an environment's state variables.
- Since:
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.models.environments.AbstractEnvironmentDataSource
clock, index, isDestroyed, names, signal, sourceListeners
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
tree_nodes
-
Constructor Summary
Constructors Constructor Description SimpleEnvironmentObservableDataSource()
-
Method Summary
Modifier and Type Method Description int
getChannelCount()
Returns the number of Y channels in this source.boolean
stimulate(DynamicModelEnvironmentEvent e)
Notifies this sensor that the environment has changed.Methods inherited from class mgui.models.environments.AbstractEnvironmentDataSource
addDataSourceListener, destroy, fireEmission, fireReset, getChannelNames, getIndex, getName, getSourceSignal, getSourceSignalAsBytes, getSourceSignalX, getSourceSignalX, getSourceSignalXY, getSourceSignalY, getSourceSignalY, isDestroyed, removeDataSourceListener, reset, setChannelNames, setIndex
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, getTreeLabel, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface mgui.interfaces.NamedObject
setName
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Constructor Details
-
SimpleEnvironmentObservableDataSource
public SimpleEnvironmentObservableDataSource()
-
-
Method Details
-
stimulate
Description copied from interface:DynamicModelEnvironmentSensor
Notifies this sensor that the environment has changed.- Returns:
-
getChannelCount
public int getChannelCount()Description copied from interface:InterfaceDataSourceTimeSeries
Returns the number of Y channels in this source.- Returns:
-