All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gerken.vehicles.InhibitoryConnection

java.lang.Object
   |
   +----gerken.vehicles.NetworkConnection
           |
           +----gerken.vehicles.InhibitoryConnection

public class InhibitoryConnection
extends NetworkConnection

An InhibitoryConnection is a connection that inhibits the firing of its to node during the next step, 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.


Constructor Index

 o InhibitoryConnection(NetworkNode, NetworkNode)

Return a connection that inhibits the firing of node t (the "to" node) whenever node f (the "from" node) fires.

Method Index

 o updateToNode()

Check to see if the from node has fired.

Constructors

 o InhibitoryConnection
 public InhibitoryConnection(NetworkNode f,
                             NetworkNode t)

Return a connection that inhibits the firing of node t (the "to" node) whenever node f (the "from" node) fires.

Parameters:
f - gerken.vehicles.VehicleNetworkNode
t - gerken.vehicles.VehicleNetworkNode

Methods

 o updateToNode
 public void updateToNode()

Check to see if the from node has fired. If it has, set the inhibited property of to to node to true.

Overrides:
updateToNode in class NetworkConnection

All Packages  Class Hierarchy  This Package  Previous  Next  Index