SSF.App.Worm
Class WormProtocolSession

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--SSF.App.Worm.MacroscopicModelConfigurator
              |
              +--SSF.App.Worm.WormProtocolSession
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable

public class WormProtocolSession
extends MacroscopicModelConfigurator
implements com.renesys.raceway.DML.Configurable

Models the worm infestation in a single host. Connects to the global epidemic model to receive infection trigger. See config() method for more information on how to set the parameters for the epidemic model.


Nested Class Summary
 
Nested classes inherited from class SSF.App.Worm.MacroscopicModelConfigurator
MacroscopicModelConfigurator.MacroModelTimer
 
Field Summary
 
Fields inherited from class SSF.OS.ProtocolSession
name, use
 
Constructor Summary
WormProtocolSession()
          Methods
 
Method Summary
 void becomeInfected()
          Make this host become infected.
 void config(com.renesys.raceway.DML.Configuration cfg)
          Configure WormProtocolSession.
 byte getState()
          Get epidemiological state.
 void init()
          Initalize (after config phase).
 boolean push(ProtocolMessage msg, ProtocolSession fromSessn)
          Do nothing.
 
Methods inherited from class SSF.App.Worm.MacroscopicModelConfigurator
configEpidemic, configGlobalOptions, getSimTime, init_macroscopic, update
 
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

WormProtocolSession

public WormProtocolSession()
Methods

Method Detail

init

public void init()
Initalize (after config phase). First instance creates global epidemic model object and initiates the timer that drives the epidemic model. All instances register with the epidemic model so that it can find them to trigger infection events.

Overrides:
init in class ProtocolSession

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Configure WormProtocolSession. Also forwards global configuration of the macroscopic epidemic model to MacroscopicModelConfigurator.

REQUIRED ATTRIBUTES:

OPTIONAL ATTRIBUTES:

Whenever the WormProtocolSession or GatewayProtocolSession is used, the outermost Net must have a global definition of the worm_model [ ... ] attribute. The worm_model attributes are as follows:

Specified by:
config in interface com.renesys.raceway.DML.Configurable
Overrides:
config in class ProtocolSession
com.renesys.raceway.DML.configException
See Also:
for more details.

push

public boolean push(ProtocolMessage msg,
                    ProtocolSession fromSessn)
Do nothing.

Specified by:
push in class ProtocolSession

becomeInfected

public void becomeInfected()
Make this host become infected.


getState

public byte getState()
Get epidemiological state.