SSF.OS.OSPFv2.test
Class PacketGenerator.BehaviorTimer

java.lang.Object
  |
  +--com.renesys.raceway.SSF.Entity
        |
        +--SSF.OS.Timer
              |
              +--SSF.OS.OSPFv2.test.PacketGenerator.BehaviorTimer
Enclosing class:
PacketGenerator

class PacketGenerator.BehaviorTimer
extends SSF.OS.Timer

This is a generalized timer class, which can be used to execute delayed actions for a specific test behavior. The timer has the test behavior and some behavior specific data associated with it and call a central event dispatcher, when it fires. This dispatcher then executes action routines dependent of the specified behavior.


Inner classes inherited from class SSF.OS.Timer
SSF.OS.Timer.TimerEvent
 
Field Summary
private  int behavior
          Behavior id
private  java.lang.Object data
          Data associated with this timer.
 
Fields inherited from class SSF.OS.Timer
chainedTo, delay, expiration, fromSelf, timer_for_entity, toSelf
 
Fields inherited from class com.renesys.raceway.SSF.Entity
$, v, x, X, y
 
Constructor Summary
PacketGenerator.BehaviorTimer(SSF.OS.ProtocolGraph e, long dt, int be, java.lang.Object da)
          Constructor for the behavior timer.
 
Method Summary
 void callback()
          Callback method, which calls the central event dispatcher.
 
Methods inherited from class SSF.OS.Timer
, cancel, isCancelled, set, set, set
 
Methods inherited from class com.renesys.raceway.SSF.Entity
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resumeAll, startAll, startAll, startClient, startClient, startServer, W, Z
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

private java.lang.Object data
Data associated with this timer. In general, this is data associated with a neighbor.

behavior

private int behavior
Behavior id
Constructor Detail

PacketGenerator.BehaviorTimer

public PacketGenerator.BehaviorTimer(SSF.OS.ProtocolGraph e,
                                     long dt,
                                     int be,
                                     java.lang.Object da)
Constructor for the behavior timer.
Parameters:
e - The ProtocolGraph, this PacketGenerator is belonging to.
dt - Timer interval, in milliseconds (?).
be - Behavior id, for the determination of the action routine.
da - An arbitrary Object containing parameters for the action Routine. This routine will cast the Object to the right data type.
Method Detail

callback

public void callback()
Callback method, which calls the central event dispatcher.
Overrides:
callback in class SSF.OS.Timer