edu.iu.iv.modeling.p2p.attackTolerance
Class AttackToleranceAlgorithm

java.lang.Object
  |
  +--edu.iu.iv.modeling.p2p.attackTolerance.AttackToleranceAlgorithm
All Implemented Interfaces:
Algorithm

public class AttackToleranceAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper for AttackTolerance Test

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
AttackToleranceAlgorithm(edu.uci.ics.jung.graph.Graph graph, int numNodes)
          Constructor for AttackTolerance.
 
Method Summary
 boolean execute()
          Runs the algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttackToleranceAlgorithm

public AttackToleranceAlgorithm(edu.uci.ics.jung.graph.Graph graph,
                                int numNodes)
Constructor for AttackTolerance. Requires a graph to be passed that represents the network and the number of nodes to be deleted randomly.

Method Detail

execute

public boolean execute()
Description copied from interface: Algorithm
Runs the algorithm.

Specified by:
execute in interface Algorithm
Returns:
true if the algorithm ran successfully, false otherwise.
See Also:
Algorithm.execute()