Package mgui.models.networks
Class AbstractNetworkModel
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.models.InterfaceAbstractModel
mgui.models.networks.AbstractNetworkModel
- All Implemented Interfaces:
java.lang.Cloneable
,AttributeObject
,GraphableObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModel
- Direct Known Subclasses:
AbstractNetwork
public abstract class AbstractNetworkModel extends InterfaceAbstractModel implements InterfaceObject, GraphableObject, AttributeObject
Abstract class for all neuronal models to inherit.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description AttributeList
attributes
DynamicModelEnvironment
environment
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description AbstractNetworkModel()
-
Method Summary
Modifier and Type Method Description void
addListener(DynamicModelListener l)
void
addSensor(DynamicModelEnvironmentSensor sensor)
abstract java.lang.Object
clone()
protected void
fireComponentAdded(DynamicModelComponent c)
protected void
fireComponentRemoved(DynamicModelComponent c)
Attribute<?>
getAttribute(java.lang.String attrName)
Returns a specific attribute for this object.AttributeList
getAttributes()
Returns the list of current attributes for this object.java.lang.Object
getAttributeValue(java.lang.String name)
Gets the value of attributename
, ornull
if it does not exist.DynamicModelEnvironment
getEnvironment()
abstract InterfaceAbstractGraph
getGraph()
java.util.ArrayList<DynamicModelEnvironmentSensor>
getSensors()
void
removeListener(DynamicModelListener l)
void
removeSensor(DynamicModelEnvironmentSensor sensor)
void
setAttribute(java.lang.String attrName, java.lang.Object newValue)
Sets a value for a specific attribute.void
setAttributes(AttributeList thisList)
Sets the list of attributes for this object.void
setEnvironment(DynamicModelEnvironment e)
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface mgui.models.dynamic.DynamicModel
fireListeners, getComponents, reset
Methods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
environment
-
attributes
-
-
Constructor Details
-
AbstractNetworkModel
public AbstractNetworkModel()
-
-
Method Details
-
setEnvironment
- Specified by:
setEnvironment
in interfaceDynamicModel
- Throws:
DynamicModelException
-
getSensors
- Specified by:
getSensors
in interfaceDynamicModel
-
addSensor
- Specified by:
addSensor
in interfaceDynamicModel
-
removeSensor
- Specified by:
removeSensor
in interfaceDynamicModel
-
getEnvironment
- Specified by:
getEnvironment
in interfaceDynamicModel
-
addListener
- Specified by:
addListener
in interfaceDynamicModel
-
removeListener
- Specified by:
removeListener
in interfaceDynamicModel
-
fireComponentAdded
-
fireComponentRemoved
-
getAttribute
Description copied from interface:AttributeObject
Returns a specific attribute for this object.- Specified by:
getAttribute
in interfaceAttributeObject
- Returns:
-
getAttributes
Description copied from interface:AttributeObject
Returns the list of current attributes for this object.- Specified by:
getAttributes
in interfaceAttributeObject
- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObject
Sets a value for a specific attribute.- Specified by:
setAttribute
in interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObject
Sets the list of attributes for this object.- Specified by:
setAttributes
in interfaceAttributeObject
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObject
Gets the value of attributename
, ornull
if it does not exist.- Specified by:
getAttributeValue
in interfaceAttributeObject
- Parameters:
name
- Name of the attribute- Returns:
- the value of attribute
name
, ornull
if it does not exist
-
getGraph
- Specified by:
getGraph
in interfaceGraphableObject
-
clone
public abstract java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-