|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.OS.BGP4.test.App.AppSession
This is a test class which acts as a very primitive application, able to generate and receive data (IP packets).
| Field Summary |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
AppSession()
We must have a zero-argument, public constructor (so that newInstance() can be used to create a new AppSession instance). |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Set the configurable values (specified in DML file). |
java.lang.String |
hdr()
Constructs a standardized output format prefix. |
void |
init()
Creates an SSF process which first does a little setup work and then just sends out a packet periodically, according to the frequency variable. |
double |
now()
A convenience method so that any functions, not just Processes, can get the current simulation time. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
This process 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 |
public AppSession()
| Method Detail |
public final void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncfg - contains the values of AppSession's configurable attributes
com.renesys.raceway.DML.configException - if any of the calls to find
or findSingle throw such
an exceptionpublic final void init()
init in class ProtocolSessionpublic final double now()
public final java.lang.String hdr()
public final boolean push(ProtocolMessage message,
ProtocolSession fromSession)
push in class ProtocolSessionmessage - The incoming event/message.fromSession - The protocol session from which the message came.
push executed without error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||