All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----gerken.vehicles.NetworkConnection
The NetworkConnection is an abstract type that represents a connection between two nodes in a simulation vehicle's network. There is a from node, which may be a receptor, and a to node which must be a hidden node. After the receptors in a network are given the chance to fire, the set of connections in the network will each update the to node in a subclass-specific way if the from node had fired on the previous step. The combination of receptors firing and the way in which its network is connected that determine the apparent behavior of an individual vehicle.
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.
Set the from node.
Set the to node for the connection.
Take action against the connection's to node, but only if the from node has fired.
public void setFrom(NetworkNode n)
Set the from node. Only when this node fires will the connection take some subclass-specific action against the to node.
public void setTo(NetworkNode n)
Set the to node for the connection. The connection will take some subclass-specific action against this node when the connection's from node fires.
public abstract void updateToNode()
Take action against the connection's to node, but only if the from node has fired.
All Packages Class Hierarchy This Package Previous Next Index