Package mgui.neuro.updaters
Class PulseTrainUpdater.CurrentPulse
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.neuro.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 double
getAmplitude()
Attribute<?>
getAttribute(java.lang.String attrName)
Returns a specific attribute for this object.AttributeList
getAttributes()
Returns the list of current attributes for this object.java.lang.Object
getAttributeValue(java.lang.String name)
Gets the value of attributename
, ornull
if it does not exist.double
getDelay()
double
getDuration()
int
getIndex()
protected void
init()
boolean
isActive(double start, double step)
void
setAmplitude(double step)
void
setAttribute(java.lang.String attrName, java.lang.Object newValue)
Sets a value for a specific attribute.void
setAttributes(AttributeList thisList)
Sets the list of attributes for this object.void
setDelay(double offset)
void
setDuration(double factor)
void
setIndex(int index)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.java.lang.String
toString()
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:AttributeObject
Returns a specific attribute for this object.- Specified by:
getAttribute
in interfaceAttributeObject
- Returns:
-
getAttributes
Description copied from interface:AttributeObject
Returns the list of current attributes for this object.- Specified by:
getAttributes
in interfaceAttributeObject
- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObject
Sets a value for a specific attribute.- Specified by:
setAttribute
in interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObject
Sets the list of attributes for this object.- Specified by:
setAttributes
in interfaceAttributeObject
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObject
Gets the value of attributename
, ornull
if it does not exist.- Specified by:
getAttributeValue
in interfaceAttributeObject
- Parameters:
name
- Name of the attribute- Returns:
- the value of attribute
name
, ornull
if it does not exist
-
setTreeNode
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classAbstractInterfaceObject
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-