edu.iu.iv.visualization.p2p.p2pnetworkvisualization
Class P2PNetworkVisualizationAlgorithm

java.lang.Object
  |
  +--edu.iu.iv.visualization.p2p.p2pnetworkvisualization.P2PNetworkVisualizationAlgorithm
All Implemented Interfaces:
Algorithm

public class P2PNetworkVisualizationAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper for P2PNetworkVisualization program

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
P2PNetworkVisualizationAlgorithm(edu.uci.ics.jung.graph.Graph g, java.lang.String title)
          Constructor.
 
Method Summary
 boolean execute()
          Runs the algorithm.
 edu.uci.ics.jung.graph.Graph getGraph()
          Get the network graph
 java.lang.String getTitle()
          Get the title of the network graph
 void setGraph(edu.uci.ics.jung.graph.Graph graph)
          Set the network graph to be visualized
 void setTitle(java.lang.String string)
          Set the title of the network graph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PNetworkVisualizationAlgorithm

public P2PNetworkVisualizationAlgorithm(edu.uci.ics.jung.graph.Graph g,
                                        java.lang.String title)
Constructor. Set the graph to visualize and its title

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()

setGraph

public void setGraph(edu.uci.ics.jung.graph.Graph graph)
Set the network graph to be visualized

Parameters:
graph -

getGraph

public edu.uci.ics.jung.graph.Graph getGraph()
Get the network graph

Returns:
graph

getTitle

public java.lang.String getTitle()
Get the title of the network graph

Returns:
title

setTitle

public void setTitle(java.lang.String string)
Set the title of the network graph

Parameters:
string - title