edu.iu.iv.modeling.p2p.randomnetwork
Class RandomNetworkAlgorithm

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

public class RandomNetworkAlgorithm
extends java.lang.Object
implements Algorithm

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
RandomNetworkAlgorithm(int size, double probability)
           
 
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

RandomNetworkAlgorithm

public RandomNetworkAlgorithm(int size,
                              double probability)
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()