All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gerken.vehicles.NetworkConnection

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

public abstract class NetworkConnection
extends Object

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.


Method Index

 o setFrom(NetworkNode)

Set the from node.

 o setTo(NetworkNode)

Set the to node for the connection.

 o updateToNode()

Take action against the connection's to node, but only if the from node has fired.

Methods

 o setFrom
 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.

Parameters:
n - gerken.vehicles.VehicleNetworkNode
 o setTo
 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.

Parameters:
n - gerken.vehicles.VehicleNetworkNode
 o updateToNode
 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