All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----gerken.vehicles.NetworkNode
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.
If the node is not inhibited and if the input sum exceeds the threshhold, the node fires.
Return whether the node fired during the most recent simulation step.
Return whether or not the node has been inhibited from firing during the next simulation step.
Return the sum of the node's inputs from the most recent simulation step.
Return the node's name.
Set whether the network node has fired.
Set the total input value.
Set the node's name.
public void fire()
If the node is not inhibited and if the input sum exceeds the threshhold, the node fires.
public boolean getFired()
Return whether the node fired during the most recent simulation step.
public boolean getInhibited()
Return whether or not the node has been inhibited from firing during the next simulation step.
public int getInput()
Return the sum of the node's inputs from the most recent simulation step.
public String getName()
Return the node's name.
public void setFired(boolean b)
Set whether the network node has fired.
public void setInhibited(boolean b)
public void setInput(int value)
Set the total input value.
public void setName(String n)
Set the node's name.
All Packages Class Hierarchy This Package Previous Next Index