Package mgui.models.updaters
Class SimpleEnvironmentUpdater
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.updaters.SimpleEnvironmentUpdater
- All Implemented Interfaces:
AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelUpdater
- Direct Known Subclasses:
LinearUpdater,PulseTrainUpdater,PulseTrainUpdater
public abstract class SimpleEnvironmentUpdater extends AbstractInterfaceObject implements DynamicModelUpdater, AttributeObject
Default super class for environment updaters.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description AttributeListattributesFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description SimpleEnvironmentUpdater() -
Method Summary
Modifier and Type Method Description protected abstract booleandoUpdate(DynamicModelEnvironment<?> c, double timeStep)Attribute<?>getAttribute(java.lang.String attrName)Returns a specific attribute for this object.AttributeListgetAttributes()Returns the list of current attributes for this object.java.lang.ObjectgetAttributeValue(java.lang.String name)Gets the value of attributename, ornullif it does not exist.protected voidinit()voidsetAttribute(java.lang.String attrName, java.lang.Object newValue)Sets a value for a specific attribute.voidsetAttributes(AttributeList thisList)Sets the list of attributes for this object.voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.protected booleantest(Updateable c, double timeStep)java.lang.StringtoString()booleanupdate(Updateable c, double timeStep)Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mgui.models.dynamic.DynamicModelUpdater
resetMethods inherited from interface mgui.interfaces.NamedObject
getName, setName
-
Field Details
-
attributes
-
-
Constructor Details
-
SimpleEnvironmentUpdater
public SimpleEnvironmentUpdater()
-
-
Method Details
-
update
- Specified by:
updatein interfaceDynamicModelUpdater
-
init
protected void init() -
test
- Throws:
DynamicModelException
-
doUpdate
-
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Returns:
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObjectGets the value of attributename, ornullif it does not exist.- Specified by:
getAttributeValuein interfaceAttributeObject- Parameters:
name- Name of the attribute- Returns:
- the value of attribute
name, ornullif it does not exist
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin interfaceAttributeObject- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObjectSets a value for a specific attribute.- Specified by:
setAttributein interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObjectSets the list of attributes for this object.- Specified by:
setAttributesin interfaceAttributeObject
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-