All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gerken.vehicles.NetworkNode

java.lang.Object
   |
   +----gerken.vehicles.NetworkNode

public abstract class NetworkNode
extends Object

The NetworkNode type is an abstract class that represents the nodes within a vehicles' network. A node has a number of inputs, a threshhold and the task of firing whenever the sum of its inputs is greater than its threshhold. The nature of a node's inputs is subclass-specific (receptors have a different role than hidden nodes), but all nodes will answer a boolean value indicating whether or not they had just fired.

Connections, with their "from" and "to" nodes have the task of indicating which nodes affect which other nodes' input sums. One subclass of connections can inhibit the firing of a node, even if its input sum is greater than its threshhold value.

This software is provided on an as-is basis and is copyright Chris Gerken. The only rights granted to you are to enjoy and learn from this software.

See Also:
NetworkConnection, VehicleNetwork

Method Index

 o fire()

If the node is not inhibited and if the input sum exceeds the threshhold, the node fires.

 o getFired()

Return whether the node fired during the most recent simulation step.

 o getInhibited()

Return whether or not the node has been inhibited from firing during the next simulation step.

 o getInput()

Return the sum of the node's inputs from the most recent simulation step.

 o getName()

Return the node's name.

 o setFired(boolean)

Set whether the network node has fired.

 o setInhibited(boolean)
Set whether this node is inhibited from firing.

 o setInput(int)

Set the total input value.

 o setName(String)

Set the node's name.

Methods

 o fire
 public void fire()

If the node is not inhibited and if the input sum exceeds the threshhold, the node fires.

 o getFired
 public boolean getFired()

Return whether the node fired during the most recent simulation step.

Returns:
boolean
 o getInhibited
 public boolean getInhibited()

Return whether or not the node has been inhibited from firing during the next simulation step.

Returns:
boolean
 o getInput
 public int getInput()

Return the sum of the node's inputs from the most recent simulation step.

Returns:
int
 o getName
 public String getName()

Return the node's name.

Returns:
java.lang.String
 o setFired
 public void setFired(boolean b)

Set whether the network node has fired.

Returns:
boolean
 o setInhibited
 public void setInhibited(boolean b)
Set whether this node is inhibited from firing.

Returns:
boolean
 o setInput
 public void setInput(int value)

Set the total input value.

Parameters:
value - int
 o setName
 public void setName(String n)

Set the node's name.

Parameters:
n - java.lang.String

All Packages  Class Hierarchy  This Package  Previous  Next  Index