Package mgui.neuro.components.simple
Class SimpleSynapse
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
,NeuronalComponent
,Synapse
,WeightedSynapse
public class SimpleSynapse extends AbstractSynapse implements WeightedSynapse
Simple synapse for, e.g.,
SimpleNeuron
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected double
potential
Fields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parent
Fields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, solver, updated
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description SimpleSynapse(double weight, double restingV)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
protected boolean
executeEvent(DynamicModelEvent e)
double
getRestingV()
double
getWeight()
protected void
init()
void
setRestingV(double r)
void
setWeight(double weight)
protected boolean
updateComponent()
Methods inherited from class mgui.neuro.components.AbstractSynapse
toString
Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
getParent, setParent
Methods inherited from class mgui.neuro.components.AbstractNeuroComponent
addConnection, addEvent, addListener, addToEngine, attributeUpdated, compareTo, executeEvents, fireListeners, fireListeners, getAttribute, getAttributes, getConnections, getDelay, getID, getName, getODESolver, getRate, getSolver, getSubComponents, hasSubComponents, removeConnection, removeListener, reset, resetClock, setAttribute, setAttributes, setDelay, setID, setID, setName, setODESolver, setSolver, setSolver, timeElapsed, updateFromClock
Methods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValue
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface mgui.models.dynamic.DynamicModelComponent
addConnection, addEvent, addToEngine, executeEvents, getID, getSubComponents, hasSubComponents, removeConnection, reset, setID, setID
Methods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods inherited from interface mgui.neuro.components.NeuronalComponent
getParent, setParent
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
potential
protected double potential
-
-
Constructor Details
-
SimpleSynapse
public SimpleSynapse(double weight, double restingV)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractNeuroComponent
-
getWeight
public double getWeight()- Specified by:
getWeight
in interfaceWeightedSynapse
-
setWeight
public void setWeight(double weight)- Specified by:
setWeight
in interfaceWeightedSynapse
-
setRestingV
public void setRestingV(double r) -
getRestingV
public double getRestingV() -
executeEvent
- Overrides:
executeEvent
in classAbstractNeuroComponent
- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponent
in classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clone
in interfaceDynamicModelComponent
- Specified by:
clone
in classAbstractNeuronalComponent
-