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>regionsFields inherited from class mgui.models.networks.AbstractNetwork
idFactory, listenersFields inherited from class mgui.models.networks.AbstractNetworkModel
attributes, environmentFields 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 booleanaddInput(java.lang.String r)booleanaddInput(AbstractCorticalRegion region)booleanaddRegion(AbstractCorticalRegion region)booleanaddRegion(AbstractCorticalRegion region, boolean fire)<T extends AbstractCorticalRegion>
booleanaddRegions(java.util.ArrayList<T> regions, boolean fire)java.lang.Objectclone()voidcomponentUpdated(NetworkComponentEvent e)booleanconnect(int region1, int region2, double weight)booleanconnect(java.lang.String region1, java.lang.String region2, double weight)protected booleanconnect(AbstractCorticalRegion r1, AbstractCorticalRegion r2, double weight)voidconnectRegions(java.lang.String region1, java.lang.String region2)java.util.ArrayList<DynamicModelComponent>getComponents()InterfaceAbstractGraphgetGraph()java.lang.StringgetName()Gets the name for this object.AbstractCorticalRegiongetRegion(java.lang.String str)booleanhasRegion(AbstractCorticalRegion region)protected voidinit()voidsetEnvironment(DynamicModelEnvironment e)voidsetName(java.lang.String name)Sets the name for this object.voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.protected voidsort()java.lang.StringtoString()Methods inherited from class mgui.models.networks.AbstractNetwork
addListener, fireListeners, fireListeners, removeListener, resetMethods inherited from class mgui.models.networks.AbstractNetworkModel
addListener, addSensor, fireComponentAdded, fireComponentRemoved, getAttribute, getAttributes, getAttributeValue, getEnvironment, getSensors, removeListener, removeSensor, setAttribute, setAttributesMethods 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
-
regions
-
-
Constructor Details
-
CorticalNetwork
public CorticalNetwork() -
CorticalNetwork
public CorticalNetwork(java.lang.String name)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNetwork
-
setEnvironment
- Specified by:
setEnvironmentin interfaceDynamicModel- Overrides:
setEnvironmentin classAbstractNetworkModel- Throws:
DynamicModelException
-
getName
public java.lang.String getName()Description copied from interface:NamedObjectGets the name for this object.- Specified by:
getNamein interfaceNamedObject- Overrides:
getNamein classAbstractInterfaceObject- Returns:
-
setName
public void setName(java.lang.String name)Description copied from interface:NamedObjectSets the name for this object.- Specified by:
setNamein interfaceNamedObject- Overrides:
setNamein classAbstractInterfaceObject
-
getGraph
- Specified by:
getGraphin interfaceGraphableObject- Specified by:
getGraphin 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:
componentUpdatedin interfaceInterfaceNetworkComponentListener
-
getComponents
- Specified by:
getComponentsin interfaceDynamicModel- Specified by:
getComponentsin classAbstractNetwork
-
clone
public java.lang.Object clone()- Specified by:
clonein classAbstractNetworkModel
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-