edu.iu.iv.modeling.p2p.can
Class CanAlgorithm

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

public class CanAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper class for the CAN network modelling algorithm

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
CanAlgorithm(int networkSize)
          Constructor for CanAlgorithm class.
 
Method Summary
 boolean execute()
          Runs the algorithm.
 java.lang.String getFileName()
          This method gets the name of the file that stores the network graph
 int getNetworkSize()
          This method gets the size of the network
 void setFileName(java.lang.String filename)
          This method sets the name of the file which'll store the network graph
 void setNetworkSize(int networkSize)
          This method sets the size of the network to be built
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanAlgorithm

public CanAlgorithm(int networkSize)
Constructor for CanAlgorithm class. It sets the size of the network to be built.

Parameters:
networkSize -
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()

setNetworkSize

public void setNetworkSize(int networkSize)
This method sets the size of the network to be built

Parameters:
networkSize -

getNetworkSize

public int getNetworkSize()
This method gets the size of the network

Returns:
network size

getFileName

public java.lang.String getFileName()
This method gets the name of the file that stores the network graph

Returns:
String

setFileName

public void setFileName(java.lang.String filename)
This method sets the name of the file which'll store the network graph

Parameters:
filename -