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 doublepotentialFields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parentFields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, solver, updatedFields 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.Objectclone()protected booleanexecuteEvent(DynamicModelEvent e)doublegetRestingV()doublegetWeight()protected voidinit()voidsetRestingV(double r)voidsetWeight(double weight)protected booleanupdateComponent()Methods inherited from class mgui.neuro.components.AbstractSynapse
toStringMethods inherited from class mgui.neuro.components.AbstractNeuronalComponent
getParent, setParentMethods 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, updateFromClockMethods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValueMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface mgui.models.dynamic.DynamicModelComponent
addConnection, addEvent, addToEngine, executeEvents, getID, getSubComponents, hasSubComponents, removeConnection, reset, setID, setIDMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.neuro.components.NeuronalComponent
getParent, setParentMethods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsedMethods 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:
initin classAbstractNeuroComponent
-
getWeight
public double getWeight()- Specified by:
getWeightin interfaceWeightedSynapse
-
setWeight
public void setWeight(double weight)- Specified by:
setWeightin interfaceWeightedSynapse
-
setRestingV
public void setRestingV(double r) -
getRestingV
public double getRestingV() -
executeEvent
- Overrides:
executeEventin classAbstractNeuroComponent- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponentin classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuronalComponent
-