Class SimpleCorticalRegion
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.networks.components.AbstractNetworkComponent
mgui.neuro.components.AbstractNeuroComponent
mgui.neuro.components.cortical.AbstractCorticalRegion
mgui.neuro.components.cortical.simple.SimpleCorticalRegion
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
- Direct Known Subclasses:
CorticalVolume
public class SimpleCorticalRegion extends AbstractCorticalRegion
-
Field Summary
Fields Modifier and Type Field Description protected double
firingRate
protected double
input
SimpleCorticalOutput
output
protected double[]
state
Fields inherited from class mgui.neuro.components.cortical.AbstractCorticalRegion
location
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 SimpleCorticalRegion()
SimpleCorticalRegion(java.lang.String name)
SimpleCorticalRegion(java.lang.String name, CorticalFunction transferFunction)
SimpleCorticalRegion(java.lang.String name, CorticalFunction transferFunction, Function inputFunction)
SimpleCorticalRegion(CorticalFunction transferFunction)
SimpleCorticalRegion(CorticalFunction transferFunction, Function inputFunction)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
void
connectTo(AbstractCorticalRegion target, double weight)
protected boolean
executeEvent(DynamicModelEvent e)
SimpleCorticalRegion
getBasicSimpleCorticalRegion()
double
getFiringRate()
double
getInput()
Function
getInputFunction()
AbstractCorticalOutput
getOutput()
java.util.ArrayList<DynamicModelComponent>
getSubComponents()
Returns a list of the complete subcomponent tree.CorticalFunction
getTransferFunction()
protected void
init()
void
reset()
protected void
setFiringRate()
void
setInputFunction(Function f)
void
setName(java.lang.String name)
Sets the name for this object.void
setOutput(SimpleCorticalOutput o)
void
setSolver()
void
setTransferFunction(CorticalFunction f)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.java.lang.String
toString()
protected boolean
updateComponent()
Methods inherited from class mgui.neuro.components.cortical.AbstractCorticalRegion
getComparator, getLocation, getName, getStrComparator, setLocation
Methods inherited from class mgui.neuro.components.AbstractNeuroComponent
addConnection, addEvent, addListener, addToEngine, attributeUpdated, compareTo, executeEvents, fireListeners, fireListeners, getAttribute, getAttributes, getConnections, getDelay, getID, getODESolver, getRate, getSolver, hasSubComponents, removeConnection, removeListener, resetClock, setAttribute, setAttributes, setDelay, setID, setID, setODESolver, 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, 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 mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Field Details
-
input
protected double input -
firingRate
protected double firingRate -
state
protected double[] state -
output
-
-
Constructor Details
-
SimpleCorticalRegion
public SimpleCorticalRegion() -
SimpleCorticalRegion
-
SimpleCorticalRegion
-
SimpleCorticalRegion
public SimpleCorticalRegion(java.lang.String name) -
SimpleCorticalRegion
-
SimpleCorticalRegion
public SimpleCorticalRegion(java.lang.String name, CorticalFunction transferFunction, Function inputFunction)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractCorticalRegion
-
reset
public void reset()- Specified by:
reset
in interfaceDynamicModelComponent
- Overrides:
reset
in classAbstractNeuroComponent
-
setOutput
-
setName
public void setName(java.lang.String name)Description copied from interface:NamedObject
Sets the name for this object.- Specified by:
setName
in interfaceNamedObject
- Overrides:
setName
in classAbstractCorticalRegion
-
getOutput
- Specified by:
getOutput
in classAbstractCorticalRegion
-
getBasicSimpleCorticalRegion
-
setInputFunction
-
getInputFunction
-
setTransferFunction
-
getTransferFunction
-
getInput
public double getInput() -
getFiringRate
public double getFiringRate() -
executeEvent
- Overrides:
executeEvent
in classAbstractNeuroComponent
- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponent
in classAbstractNeuroComponent
-
setSolver
public void setSolver()- Overrides:
setSolver
in classAbstractNeuroComponent
-
setFiringRate
protected void setFiringRate() -
connectTo
- Specified by:
connectTo
in classAbstractCorticalRegion
-
getSubComponents
Description copied from class:AbstractNeuroComponent
Returns a list of the complete subcomponent tree. Subclasses containing subcomponents should override this and provide an enumeration of all subcomponents, also calling this method for each subcomponent to ensure a complete tree is returned.- Specified by:
getSubComponents
in interfaceDynamicModelComponent
- Overrides:
getSubComponents
in classAbstractNeuroComponent
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
clone
public java.lang.Object clone()- Specified by:
clone
in interfaceDynamicModelComponent
- Specified by:
clone
in classAbstractNeuroComponent
-
setTreeNode
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classAbstractInterfaceObject
-