Package mgui.neuro.networks
Class CorticalNetwork
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable
,AttributeObject
,GraphableObject
,InterfaceObject
,NamedObject
,InterfaceNeuroComponentListener
,TreeObject
,CleanableObject
,DynamicModel
,InterfaceNetworkComponentListener
public class CorticalNetwork extends AbstractNetwork implements InterfaceNeuroComponentListener
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<AbstractCorticalRegion>
regions
Fields inherited from class mgui.models.networks.AbstractNetwork
idFactory, listeners
Fields inherited from class mgui.models.networks.AbstractNetworkModel
attributes, environment
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description CorticalNetwork()
CorticalNetwork(java.lang.String name)
-
Method Summary
Modifier and Type Method Description boolean
addInput(java.lang.String r)
boolean
addInput(AbstractCorticalRegion region)
boolean
addRegion(AbstractCorticalRegion region)
boolean
addRegion(AbstractCorticalRegion region, boolean fire)
<T extends AbstractCorticalRegion>
booleanaddRegions(java.util.ArrayList<T> regions, boolean fire)
java.lang.Object
clone()
void
componentUpdated(NetworkComponentEvent e)
boolean
connect(int region1, int region2, double weight)
boolean
connect(java.lang.String region1, java.lang.String region2, double weight)
protected boolean
connect(AbstractCorticalRegion r1, AbstractCorticalRegion r2, double weight)
void
connectRegions(java.lang.String region1, java.lang.String region2)
java.util.ArrayList<DynamicModelComponent>
getComponents()
InterfaceAbstractGraph
getGraph()
java.lang.String
getName()
Gets the name for this object.AbstractCorticalRegion
getRegion(java.lang.String str)
boolean
hasRegion(AbstractCorticalRegion region)
protected void
init()
void
setEnvironment(DynamicModelEnvironment e)
void
setName(java.lang.String name)
Sets the name for this object.void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.protected void
sort()
java.lang.String
toString()
Methods inherited from class mgui.models.networks.AbstractNetwork
addListener, fireListeners, fireListeners, removeListener, reset
Methods inherited from class mgui.models.networks.AbstractNetworkModel
addListener, addSensor, fireComponentAdded, fireComponentRemoved, getAttribute, getAttributes, getAttributeValue, getEnvironment, getSensors, removeListener, removeSensor, setAttribute, setAttributes
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
-
regions
-
-
Constructor Details
-
CorticalNetwork
public CorticalNetwork() -
CorticalNetwork
public CorticalNetwork(java.lang.String name)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractNetwork
-
setEnvironment
- Specified by:
setEnvironment
in interfaceDynamicModel
- Overrides:
setEnvironment
in classAbstractNetworkModel
- Throws:
DynamicModelException
-
getName
public java.lang.String getName()Description copied from interface:NamedObject
Gets the name for this object.- Specified by:
getName
in interfaceNamedObject
- Overrides:
getName
in classAbstractInterfaceObject
- Returns:
-
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 classAbstractInterfaceObject
-
getGraph
- Specified by:
getGraph
in interfaceGraphableObject
- Specified by:
getGraph
in classAbstractNetwork
-
addInput
public boolean addInput(java.lang.String r) -
addInput
-
addRegion
-
addRegion
-
addRegions
public <T extends AbstractCorticalRegion> boolean addRegions(java.util.ArrayList<T> regions, boolean fire) -
hasRegion
-
getRegion
-
connect
public boolean connect(java.lang.String region1, java.lang.String region2, double weight) -
connect
public boolean connect(int region1, int region2, double weight) -
connect
-
sort
protected void sort() -
connectRegions
public void connectRegions(java.lang.String region1, java.lang.String region2) -
componentUpdated
- Specified by:
componentUpdated
in interfaceInterfaceNetworkComponentListener
-
getComponents
- Specified by:
getComponents
in interfaceDynamicModel
- Specified by:
getComponents
in classAbstractNetwork
-
clone
public java.lang.Object clone()- Specified by:
clone
in classAbstractNetworkModel
-
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
-