nodeNet
Interface CountingNodeBehavior


public abstract interface CountingNodeBehavior
extends NodeBehavior

An interface for NodeBehaviors that keep track of the number of objects they have seen. By implementing this interface, SimulationPanel will display the value returned by getCount() whenever the node is displayed.

Copyright (c) 1998 Massachusetts Institute of Technology


Method Summary
 int getCount()
          Returns the number of packets moved.
 void resetCount()
          Resets the count.
 
Methods inherited from interface nodeNet.NodeBehavior
transmitPacket
 

Method Detail

getCount

public int getCount()
Returns the number of packets moved.

resetCount

public void resetCount()
Resets the count.