Package mgui.models.dynamic
Interface DynamicModelComponent
- All Superinterfaces:
CleanableObject,java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,InterfaceObject,NamedObject,TimeStepListener,TreeObject,Updateable
- All Known Subinterfaces:
Axon,Dendrite,Dendrites,DynamicModelODEComponent,MotorNeuron,Neuron,NeuronalComponent,SensoryNeuron,Soma,Synapse
- All Known Implementing Classes:
AbstractAxon,AbstractCompartment,AbstractCorticalConnection,AbstractCorticalInput,AbstractCorticalOutput,AbstractCorticalRegion,AbstractDendrite,AbstractDendrites,AbstractMotorNeuron,AbstractNetworkComponent,AbstractNeuroComponent,AbstractNeuron,AbstractNeuronalComponent,AbstractSensoryNeuron,AbstractSoma,AbstractSynapse,CompartmentalComponent,CompartmentalDendrite,CompartmentalNeuron,CompartmentalSoma,ConnectableNeuron,CorticalRegion,CorticalVolume,CorticalVolume,NeuronalCompartmentalComponent,SimpleAxon,SimpleCompartment,SimpleCorticalConnection,SimpleCorticalInput,SimpleCorticalOutput,SimpleCorticalRegion,SimpleDendrite,SimpleDendrites,SimpleMotorNeuron,SimpleNeuron,SimpleSensoryNeuron,SimpleSoma,SimpleSynapse
public interface DynamicModelComponent extends TimeStepListener, Updateable, java.lang.Comparable<DynamicModelComponent>, java.lang.Cloneable, InterfaceObject
Interface which must be implemented by all components of a dynamic model. It must also
be able to update itself from an enviroment state, via its updateFromEnviroment method.
This interface extends TimeStepListener, so a dynamic component must also be able to
update itself as a function of a given interval of time elapsed from its current state.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description voidaddConnection(DynamicModelComponent c)voidaddEvent(DynamicModelEvent e)voidaddToEngine(DynamicModelEngine e)java.lang.Objectclone()booleanexecuteEvents(double step)Executes any events in this component's event cue and clears the cue.longgetID()java.util.ArrayList<DynamicModelComponent>getSubComponents()booleanhasSubComponents()voidremoveConnection(DynamicModelComponent c)voidreset()voidsetID(long id)voidsetID(long id, boolean update)Methods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsedMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Method Details
-
addToEngine
-
addEvent
-
addConnection
-
removeConnection
-
executeEvents
boolean executeEvents(double step)Executes any events in this component's event cue and clears the cue.- Returns:
- true if successful, false if errors encountered
-
hasSubComponents
boolean hasSubComponents() -
getSubComponents
java.util.ArrayList<DynamicModelComponent> getSubComponents() -
getID
long getID() -
setID
void setID(long id) -
setID
void setID(long id, boolean update) -
reset
void reset() -
clone
java.lang.Object clone()
-