SSF.OS.BGP4.Widgets
Class BogusAdvertiser

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--SSF.OS.BGP4.Widgets.BogusAdvertiser
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable

public class BogusAdvertiser
extends ProtocolSession

A test class, masquerading as a ProtocolSession, for injecting a given route into a system, and later optionally withdrawing it.


Field Summary
 
Fields inherited from class SSF.OS.ProtocolSession
name, use
 
Constructor Summary
BogusAdvertiser()
          We must have a zero-argument, public constructor (so that newInstance() can be used to create a new BogusAdvertiser instance).
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Set the configurable values (specified in DML file).
 void init()
          Creates an SSF process which sends a message advertising a given destination after a given startup wait period, later optionally withdrawing the route.
 double now()
          Returns the current simulation time.
 boolean push(ProtocolMessage message, ProtocolSession fromSession)
          Handles incoming events.
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BogusAdvertiser

public BogusAdvertiser()
We must have a zero-argument, public constructor (so that newInstance() can be used to create a new BogusAdvertiser instance).

Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Set the configurable values (specified in DML file).

Specified by:
config in interface com.renesys.raceway.DML.Configurable
Overrides:
config in class ProtocolSession
Throws:
com.renesys.raceway.DML.configException - if any of the calls to find or findSingle throw such an exception.

init

public void init()
Creates an SSF process which sends a message advertising a given destination after a given startup wait period, later optionally withdrawing the route.

Overrides:
init in class ProtocolSession

now

public double now()
Returns the current simulation time. A convenience method so that functions, not just Processes, can get the current simulation time.

Returns:
the current simulation time

push

public boolean push(ProtocolMessage message,
                    ProtocolSession fromSession)
Handles incoming events.

Specified by:
push in class ProtocolSession