|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--neuroidnet.ntr.Neuroid
Abstract neuroid entity. Instances are contained in
Areas.
Area,
Serialized Form| Nested Class Summary | |
protected class |
Neuroid.Mode
Modes that a neuron can have. |
(package private) class |
Neuroid.SynapseActivityTask
Iterator task class which scans synapses of the neuroid. |
| Field Summary | |
protected Area |
area
Parent Area. |
protected Concept |
concept
Associated concept if neuroid has memorized anything. |
(package private) boolean |
debug
If set, outputs debugging info about this neuroid. |
(package private) int |
id
Sequence of Neuroid in the array held in Area. |
protected Neuroid.Mode |
mode
Represents the state and dynamic parameters of the neuroid. |
(package private) double |
potential
Membrane potential. |
(package private) NeuroidProfile |
profile
|
(package private) Vector |
spikeTrain
List of times that the neuroid fired. |
protected Dendrite |
synapses
List of incoming synapses. |
(package private) double |
timeLastFired
Last firing time of this Neuroid. |
protected boolean |
watch
If set, the neuroid saves informatoin about its state changes. |
| Constructor Summary | |
Neuroid(Area area)
and connects to area. |
|
| Method Summary | |
int |
addSynapse(Synapse synapse)
Add synapse to synapses and return index to become
the id of the Synapse. |
protected abstract void |
calculatePotential()
Calculate the potential here. |
String |
dumpData()
Deprecated. Use plots and the profile gathering system. |
void |
fire()
Fires the neuroid. |
Area |
getArea()
Get the value of area. |
Concept |
getConcept()
Get the value of concept. |
int |
getId()
Get the value of id. |
Neuroid.Mode |
getMode()
Get the value of mode. |
NeuroidProfile |
getProfile()
Get the value of profile. |
String |
getProperties()
Describe in higher detail. |
Vector |
getSpikeTrain()
Get the value of spikeTrain. |
String |
getStatus()
Output of toString() plus potential,
mode status, last fire time, and concept name. |
Dendrite |
getSynapses()
Get the value of synapses. |
double |
getTimeLastFired()
Get the value of timeLastFired. |
void |
init()
N/A |
boolean |
isDebug()
Get the value of debug. |
boolean |
isWatch()
Get the value of watch. |
(package private) void |
makeConcept()
Create new concept. |
void |
setArea(Area v)
Set the value of area. |
void |
setDebug(boolean v)
Set the value of debug. |
void |
setMode(Neuroid.Mode v)
Set the value of mode and connects any profilers if watched. |
void |
setProfile(NeuroidProfile v)
Set the value of profile. |
void |
setSpikeTrain(Vector v)
Set the value of spikeTrain. |
void |
setWatch(boolean v)
Set the value of watch. |
void |
step()
Update state of the Neuroid. |
void |
stop()
N/A |
String |
toString()
Identify the neuroid with its id and area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
double potential
protected Dendrite synapses
double timeLastFired
protected Area area
protected Concept concept
Conceptfinal int id
Neuroid in the array held in Area.
Good for representation.
Used to override Object.hashCode() and don't pass around this id, but
hascode is dynamic and changes at every runtime, leaving us with a volatile identifier.
Oh, well. Set in Area.addNeuroid()
Area.neuroids,
Area.addNeuroid(neuroidnet.ntr.Neuroid)protected Neuroid.Mode mode
boolean debug
protected boolean watch
Vector spikeTrain
spikeTrain defined in Synapse.
Synapse.spikeTrainNeuroidProfile profile
| Constructor Detail |
public Neuroid(Area area)
area.
| Method Detail |
public Dendrite getSynapses()
public double getTimeLastFired()
public Area getArea()
public void setArea(Area v)
v - Value to assign to area.public Concept getConcept()
public int getId()
public Neuroid.Mode getMode()
public void setMode(Neuroid.Mode v)
v - Value to assign to mode.public boolean isDebug()
public void setDebug(boolean v)
v - Value to assign to debug.public boolean isWatch()
public void setWatch(boolean v)
NeuroidProfile
object.
v - Value to assign to watch.public Vector getSpikeTrain()
public void setSpikeTrain(Vector v)
v - Value to assign to spikeTrain.public NeuroidProfile getProfile()
public void setProfile(NeuroidProfile v)
v - Value to assign to profile.public final void init()
init in interface Simulationpublic void fire()
spikeTrain if being watched.
fire in interface InputArea.fireNeuroid(neuroidnet.ntr.Neuroid),
watchpublic void step()
Neuroid.
Use the UMT algorithm by default, though behavior will depend
on Synapse parameters.
step in interface SimulationSynapsepublic void stop()
stop in interface Simulationprotected abstract void calculatePotential()
potential here.
potential
void makeConcept()
throws ConceptSaturatedException
TODO: destroy old concept if it exists.
ConceptSaturatedExceptionConceptArea,
Concept,
ConceptSaturatedExceptionpublic int addSynapse(Synapse synapse)
synapse to synapses and return index to become
the id of the Synapse. Analogous to Area.addNeuroid()
synapse - a Synapse to add to synapses
int value, the index of new synapse in synapsesArea.addNeuroid(neuroidnet.ntr.Neuroid)public String toString()
id and area.
toString in interface ExpressivetoString in class ObjectString valuepublic String getStatus()
toString() plus potential,
mode status, last fire time, and concept name.
getStatus in interface ExpressiveString valueExpressive.toString()public String getProperties()
getProperties in interface ExpressiveString valueExpressive.getStatus()public String dumpData()
ConceptArea#dumpData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||