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 doublefiringRateprotected doubleinputSimpleCorticalOutputoutputprotected double[]stateFields inherited from class mgui.neuro.components.cortical.AbstractCorticalRegion
locationFields 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 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.Objectclone()voidconnectTo(AbstractCorticalRegion target, double weight)protected booleanexecuteEvent(DynamicModelEvent e)SimpleCorticalRegiongetBasicSimpleCorticalRegion()doublegetFiringRate()doublegetInput()FunctiongetInputFunction()AbstractCorticalOutputgetOutput()java.util.ArrayList<DynamicModelComponent>getSubComponents()Returns a list of the complete subcomponent tree.CorticalFunctiongetTransferFunction()protected voidinit()voidreset()protected voidsetFiringRate()voidsetInputFunction(Function f)voidsetName(java.lang.String name)Sets the name for this object.voidsetOutput(SimpleCorticalOutput o)voidsetSolver()voidsetTransferFunction(CorticalFunction f)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()protected booleanupdateComponent()Methods inherited from class mgui.neuro.components.cortical.AbstractCorticalRegion
getComparator, getLocation, getName, getStrComparator, setLocationMethods 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, updateFromClockMethods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValueMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, 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 mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods 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:
initin classAbstractCorticalRegion
-
reset
public void reset()- Specified by:
resetin interfaceDynamicModelComponent- Overrides:
resetin classAbstractNeuroComponent
-
setOutput
-
setName
public void setName(java.lang.String name)Description copied from interface:NamedObjectSets the name for this object.- Specified by:
setNamein interfaceNamedObject- Overrides:
setNamein classAbstractCorticalRegion
-
getOutput
- Specified by:
getOutputin classAbstractCorticalRegion
-
getBasicSimpleCorticalRegion
-
setInputFunction
-
getInputFunction
-
setTransferFunction
-
getTransferFunction
-
getInput
public double getInput() -
getFiringRate
public double getFiringRate() -
executeEvent
- Overrides:
executeEventin classAbstractNeuroComponent- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponentin classAbstractNeuroComponent
-
setSolver
public void setSolver()- Overrides:
setSolverin classAbstractNeuroComponent
-
setFiringRate
protected void setFiringRate() -
connectTo
- Specified by:
connectToin classAbstractCorticalRegion
-
getSubComponents
Description copied from class:AbstractNeuroComponentReturns 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:
getSubComponentsin interfaceDynamicModelComponent- Overrides:
getSubComponentsin classAbstractNeuroComponent
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuroComponent
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-