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 AttributeListattributesDynamicModelEnvironmentenvironmentFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description AbstractNetworkModel() -
Method Summary
Modifier and Type Method Description voidaddListener(DynamicModelListener l)voidaddSensor(DynamicModelEnvironmentSensor sensor)abstract java.lang.Objectclone()protected voidfireComponentAdded(DynamicModelComponent c)protected voidfireComponentRemoved(DynamicModelComponent c)Attribute<?>getAttribute(java.lang.String attrName)Returns a specific attribute for this object.AttributeListgetAttributes()Returns the list of current attributes for this object.java.lang.ObjectgetAttributeValue(java.lang.String name)Gets the value of attributename, ornullif it does not exist.DynamicModelEnvironmentgetEnvironment()abstract InterfaceAbstractGraphgetGraph()java.util.ArrayList<DynamicModelEnvironmentSensor>getSensors()voidremoveListener(DynamicModelListener l)voidremoveSensor(DynamicModelEnvironmentSensor sensor)voidsetAttribute(java.lang.String attrName, java.lang.Object newValue)Sets a value for a specific attribute.voidsetAttributes(AttributeList thisList)Sets the list of attributes for this object.voidsetEnvironment(DynamicModelEnvironment e)Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface mgui.models.dynamic.DynamicModel
fireListeners, getComponents, resetMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
environment
-
attributes
-
-
Constructor Details
-
AbstractNetworkModel
public AbstractNetworkModel()
-
-
Method Details
-
setEnvironment
- Specified by:
setEnvironmentin interfaceDynamicModel- Throws:
DynamicModelException
-
getSensors
- Specified by:
getSensorsin interfaceDynamicModel
-
addSensor
- Specified by:
addSensorin interfaceDynamicModel
-
removeSensor
- Specified by:
removeSensorin interfaceDynamicModel
-
getEnvironment
- Specified by:
getEnvironmentin interfaceDynamicModel
-
addListener
- Specified by:
addListenerin interfaceDynamicModel
-
removeListener
- Specified by:
removeListenerin interfaceDynamicModel
-
fireComponentAdded
-
fireComponentRemoved
-
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Returns:
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin interfaceAttributeObject- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObjectSets a value for a specific attribute.- Specified by:
setAttributein interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObjectSets the list of attributes for this object.- Specified by:
setAttributesin interfaceAttributeObject
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObjectGets the value of attributename, ornullif it does not exist.- Specified by:
getAttributeValuein interfaceAttributeObject- Parameters:
name- Name of the attribute- Returns:
- the value of attribute
name, ornullif it does not exist
-
getGraph
- Specified by:
getGraphin interfaceGraphableObject
-
clone
public abstract java.lang.Object clone()- Overrides:
clonein classjava.lang.Object
-