SSF.App.Worm
Class WormRecorder

java.lang.Object
  |
  +--SSF.Util.Streams.BasicRecorder
        |
        +--SSF.App.Worm.WormRecorder
All Implemented Interfaces:
StreamInterface

public class WormRecorder
extends BasicRecorder


Constructor Summary
WormRecorder(java.lang.String fileName)
           
 
Method Summary
 void sendGlobalRecord(float time, float totalInfectedHosts)
          Send a GLOBAL_STATE_REC record to the output stream.
 void sendGlobalRoutingTrafficRecord(float time, int routerId, int activity)
          Send a GLOBAL_ROUTING_TRAFFIC_REC record to the output stream.
 void sendRouterStressRecord(float time, int routerId, byte state)
          Send a ROUTER_STRESS_STATE_REC record to the output stream.
 void sendRoutingStateRecord(float time, int routerId, byte state, int activity)
          Send a ROUTING_STATE_REC record to the output stream.
 
Methods inherited from class SSF.Util.Streams.BasicRecorder
addSession, connectRead, connectWrite, connectWrite, disconnect, getRecordSourceCode, getRecordSourceString, getRecordTypeCode, getRecordTypeString, isConnected, receive, send, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WormRecorder

public WormRecorder(java.lang.String fileName)
Method Detail

sendRouterStressRecord

public void sendRouterStressRecord(float time,
                                   int routerId,
                                   byte state)
Send a ROUTER_STRESS_STATE_REC record to the output stream.
time in hours.


sendRoutingStateRecord

public void sendRoutingStateRecord(float time,
                                   int routerId,
                                   byte state,
                                   int activity)
Send a ROUTING_STATE_REC record to the output stream.
time in hours.


sendGlobalRecord

public void sendGlobalRecord(float time,
                             float totalInfectedHosts)
Send a GLOBAL_STATE_REC record to the output stream.
time in hours.


sendGlobalRoutingTrafficRecord

public void sendGlobalRoutingTrafficRecord(float time,
                                           int routerId,
                                           int activity)
Send a GLOBAL_ROUTING_TRAFFIC_REC record to the output stream.
time in hours.