edu.iu.iv.modeling.p2p.errorTolerance
Class ErrorToleranceAlgorithm

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

public class ErrorToleranceAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper for ErrorTolerance Test

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
ErrorToleranceAlgorithm(edu.uci.ics.jung.graph.Graph graph, int numNodes)
          Constructor for ErrorTolerance.
 
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

ErrorToleranceAlgorithm

public ErrorToleranceAlgorithm(edu.uci.ics.jung.graph.Graph graph,
                               int numNodes)
Constructor for ErrorTolerance. 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()