Package mgui.models.updaters
Class PulseTrainUpdater.CurrentPulse
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.updaters.PulseTrainUpdater.CurrentPulse
- All Implemented Interfaces:
AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject
- Enclosing class:
- PulseTrainUpdater
public class PulseTrainUpdater.CurrentPulse extends AbstractInterfaceObject implements AttributeObject
-
Field Summary
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description CurrentPulse(int index, double delay, double duration, double amplitude) -
Method Summary
Modifier and Type Method Description doublegetAmplitude()AttributegetAttribute(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.doublegetDelay()doublegetDuration()intgetIndex()protected voidinit()booleanisActive(double start, double step)voidsetAmplitude(double step)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.voidsetDelay(double offset)voidsetDuration(double factor)voidsetIndex(int index)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()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.interfaces.NamedObject
getName, setName
-
Constructor Details
-
CurrentPulse
public CurrentPulse(int index, double delay, double duration, double amplitude)
-
-
Method Details
-
init
protected void init() -
isActive
public boolean isActive(double start, double step) -
setIndex
public void setIndex(int index) -
getIndex
public int getIndex() -
setDelay
public void setDelay(double offset) -
setDuration
public void setDuration(double factor) -
setAmplitude
public void setAmplitude(double step) -
getDelay
public double getDelay() -
getDuration
public double getDuration() -
getAmplitude
public double getAmplitude() -
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Returns:
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin 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
-
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
-