SSF.App.Worm
Class StochasticWormEpidemicState

java.lang.Object
  |
  +--SSF.App.Worm.WormEpidemicState
        |
        +--SSF.App.Worm.StochasticWormEpidemicState

public class StochasticWormEpidemicState
extends WormEpidemicState

Stochastic epidemic model implementation epidemic model. Contains epidemic state of one AS. See update() method for more information.


Field Summary
 
Fields inherited from class SSF.App.Worm.WormEpidemicState
i, myAS, N, r, s
 
Constructor Summary
StochasticWormEpidemicState(AS myAS)
           
 
Method Summary
 void output()
           
 void update(float iTot)
          One timestep update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StochasticWormEpidemicState

public StochasticWormEpidemicState(AS myAS)
Method Detail

update

public void update(float iTot)
One timestep update. Calculate probability of hitting a susceptible host in this AS as P[hit] = Beta_j * s. Where Beta_j = ip_space_j / tot_ip_space * Beta. Then the number of newly infected hosts in this AS is di = Binomial(n, P[hit]), where n is the number of scans hitting this AS in this timestep.

Specified by:
update in class WormEpidemicState

output

public void output()