Package mgui.neuro.updaters
Class PulseTrainUpdater
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.updaters.SimpleEnvironmentUpdater
mgui.neuro.updaters.PulseTrainUpdater
- All Implemented Interfaces:
AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelUpdater
public class PulseTrainUpdater extends SimpleEnvironmentUpdater
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPulseTrainUpdater.CurrentPulse -
Field Summary
Fields Modifier and Type Field Description protected doubleclockjava.util.ArrayList<PulseTrainUpdater.CurrentPulse>pulsesFields inherited from class mgui.models.updaters.SimpleEnvironmentUpdater
attributesFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description PulseTrainUpdater()PulseTrainUpdater(boolean repeat, double rate) -
Method Summary
Modifier and Type Method Description PulseTrainUpdater.CurrentPulseaddPulse(int index, double delay, double duration, double amplitude)protected booleandoUpdate(DynamicModelEnvironment c, double timeStep)doublegetRate()booleangetRepeat()protected voidinit()voidremovePulse(PulseTrainUpdater.CurrentPulse pulse)voidreset()voidsetRate(double rate)voidsetRepeat(boolean repeat)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()protected voidupdateRepeat()Methods inherited from class mgui.models.updaters.SimpleEnvironmentUpdater
getAttribute, getAttributes, getAttributeValue, setAttribute, setAttributes, test, updateMethods 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.interfaces.NamedObject
getName, setName
-
Field Details
-
pulses
-
clock
protected double clock
-
-
Constructor Details
-
PulseTrainUpdater
public PulseTrainUpdater() -
PulseTrainUpdater
public PulseTrainUpdater(boolean repeat, double rate)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classSimpleEnvironmentUpdater
-
reset
public void reset() -
setRepeat
public void setRepeat(boolean repeat) -
getRepeat
public boolean getRepeat() -
setRate
public void setRate(double rate) -
getRate
public double getRate() -
addPulse
public PulseTrainUpdater.CurrentPulse addPulse(int index, double delay, double duration, double amplitude) -
removePulse
-
doUpdate
- Specified by:
doUpdatein classSimpleEnvironmentUpdater
-
updateRepeat
protected void updateRepeat() -
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classSimpleEnvironmentUpdater
-
toString
public java.lang.String toString()- Overrides:
toStringin classSimpleEnvironmentUpdater
-