All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----gerken.vehicles.NetworkConnection
|
+----gerken.vehicles.ExcitatoryConnection
An ExcitatoryConnection is a connection that adds its weight (an integer value) to the accumulating input of its to node, but only if its from node fired during the previous step.
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.
Return an ExcitatoryConnection that connects node f to node t with weight 1.
Return an ExcitatoryConnection that connects node f to node t with weight w.
Return the connection's weight.
Set the connection's weight.
Check to see if the from node has fired.
public ExcitatoryConnection(NetworkNode f,
NetworkNode t)
Return an ExcitatoryConnection that connects node f to node t with weight 1.
public ExcitatoryConnection(NetworkNode f,
NetworkNode t,
int w)
Return an ExcitatoryConnection that connects node f to node t with weight w.
public int getWeight()
Return the connection's weight. This value is added to the "to" node's input when the "from" node fires.
public void setWeight(int w)
Set the connection's weight. This value is added to the "to" node's input when the "from" node fires.
public void updateToNode()
Check to see if the from node has fired. If it has, add the connection's weight to the input total for the to node.
All Packages Class Hierarchy This Package Previous Next Index