neuroidnet.ntr
Class Neuroid.Mode

java.lang.Object
  |
  +--java.util.Observable
        |
        +--edu.ull.cgunay.plots.Profilable
              |
              +--neuroidnet.ntr.Neuroid.Mode
All Implemented Interfaces:
Cloneable, Expressive, Serializable, Simulation
Direct Known Subclasses:
SRMNeuroid.Mode
Enclosing class:
Neuroid

protected abstract class Neuroid.Mode
extends Profilable
implements Simulation, Expressive

Modes that a neuron can have.

TODO: Make this a hierarchy of classes in a subpackage called umt

Since:
1.0
Version:
1.0
Author:
Cengiz Gunay
See Also:
Serialized Form

Nested Class Summary
(package private)  class Neuroid.Mode.State
           
 
Field Summary
(package private)  int state
          State of neuroid, can only take values defined here.
(package private)  double threshold
          Threshold of the neuroid.
 
Fields inherited from class java.util.Observable
 
Constructor Summary
(package private) Neuroid.Mode()
          Dummy constructor.
(package private) Neuroid.Mode(int state, double threshold)
           
 
Method Summary
 double doubleValue()
           
 Neuroid getNeuroid()
          Returns a reference to the enclosing Neuroid.
 String getProperties()
          Nothing special.
 int getState()
          Get the value of state.
 String getStatus()
          toString() plus state, threshold.
 double getThreshold()
          Get the value of threshold.
 void init()
           
 void setState(int v)
          Set the value of state.
 void setThreshold(double v)
          Set the value of threshold.
abstract  void step()
           
 void stop()
          N/A
 String toString()
          Strip fully qualified class name to leave only the class name.
 
Methods inherited from class edu.ull.cgunay.plots.Profilable
getClone
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

state

int state
State of neuroid, can only take values defined here. TODO: Use byte?


threshold

double threshold
Threshold of the neuroid.

Constructor Detail

Neuroid.Mode

Neuroid.Mode()
Dummy constructor.


Neuroid.Mode

Neuroid.Mode(int state,
             double threshold)
Method Detail

getState

public int getState()
Get the value of state.

Returns:
value of state.

setState

public void setState(int v)
Set the value of state.

Parameters:
v - Value to assign to state.

getThreshold

public double getThreshold()
Get the value of threshold.

Returns:
value of threshold.

setThreshold

public void setThreshold(double v)
Set the value of threshold.

Parameters:
v - Value to assign to threshold.

init

public void init()
Specified by:
init in interface Simulation

stop

public void stop()
N/A

Specified by:
stop in interface Simulation

toString

public String toString()
Strip fully qualified class name to leave only the class name.

Specified by:
toString in interface Expressive
Overrides:
toString in class Object
Returns:
a String value

getStatus

public String getStatus()
toString() plus state, threshold.

Specified by:
getStatus in interface Expressive
Returns:
a String value
See Also:
Expressive.toString()

getProperties

public String getProperties()
Nothing special.

Specified by:
getProperties in interface Expressive
Returns:
a String value
See Also:
Expressive.getStatus()

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Profilable

getNeuroid

public Neuroid getNeuroid()
Returns a reference to the enclosing Neuroid.

Returns:
a Neuroid value

step

public abstract void step()
Specified by:
step in interface Simulation