neuroidnet.ntr
Class Peripheral

java.lang.Object
  |
  +--neuroidnet.ntr.Peripheral
All Implemented Interfaces:
Expressive, Serializable
Direct Known Subclasses:
Peripheral

public abstract class Peripheral
extends Object
implements Serializable, Expressive

Controls inputs to the Network. Has subclasses to create test networks with specific inputs.

Version:
$Revision: 1.9 $
Author:
Cengiz Gunay
See Also:
Created: Mon Nov 20 02:08:10 2000, Serialized Form

Field Summary
protected  Network network
          Pointer to associated Network object
protected  double time
          Peripheral system's own account of time.
 
Constructor Summary
Peripheral(Network network)
          Creates a new Peripheral instance.
 
Method Summary
protected abstract  void eventsAtThisTime()
          Called by step(), determines periperal actions.
 String getProperties()
          In addition to getStatus() contents, give all static properties also.
 String getStatus()
          In addition to toString() contents, give transient properties of the entity without the static properties.
 void step()
          Peripheral control of timepass, initiates peripheral events associated with time.
 String toString()
          Give enough information on the entity for identification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

network

protected Network network
Pointer to associated Network object

See Also:
ntr.Network

time

protected double time
Peripheral system's own account of time.

Constructor Detail

Peripheral

public Peripheral(Network network)
Creates a new Peripheral instance. Has bidirectional interaction with the Network.

Parameters:
network - a Network value
See Also:
Network.setPeripheral(neuroidnet.ntr.Peripheral)
Method Detail

step

public void step()
Peripheral control of timepass, initiates peripheral events associated with time. Delegates to network.step().

See Also:
Network.step()

eventsAtThisTime

protected abstract void eventsAtThisTime()
Called by step(), determines periperal actions. Should be overloaded in instances of this class

See Also:
step()

toString

public String toString()
Description copied from interface: Expressive
Give enough information on the entity for identification.

Specified by:
toString in interface Expressive
Overrides:
toString in class Object
Returns:

getProperties

public String getProperties()
Description copied from interface: Expressive
In addition to getStatus() contents, give all static properties also.

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

getStatus

public String getStatus()
Description copied from interface: Expressive
In addition to toString() contents, give transient properties of the entity without the static properties.

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