bcds.phison.cmd
Class Metrics<V extends GraphIONode,E>

java.lang.Object
  extended by bcds.phison.cmd.Metrics<V,E>

public class Metrics<V extends GraphIONode,E>
extends java.lang.Object

Computes one or more metrics on one or more topologies. The metrics are loaded dynamically, based on a list of class names provided by the user. The metric+topology is considered a computation unit and several such computation units (threads) are spawn (the user can limit the number of concurrent threads).

Any class that implements from GraphMetric can be loaded dynamically, provided that it operates on the target element (graph, node or link). Not all the metrics are applicable to all the targets. For example, Density can only be applied to the whole graph and not to node or link. Moreover, it is also important to notice that only the graph target element is compatible with more than one topology as a parameter.

Alternatively, this command/class can be used to display information about the a GraphMetric derived class (see parameter -d). An example of use of this program follows, assuming that a Unix-like shell is used:

   (cat <<END
   Metrics.float_fmt="%.10f"
   Metrics.nw=10
   END
   ) | java -jar phison.jar Metrics -env_file=- -metrics=Assortativity,\
            AvgPathLength,ClusteringCoeff,Diameter,OutNodeDegree,\
                   EdgeSetSize,AvgTwoTermReliability \
            -target=graph \
            net1.sgf net2.net netN.sgf
 
See the output of --help for a description of parameters and operation.

Author:
Juan Segovia S.

Constructor Summary
Metrics()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void parseArgs(java.lang.String[] args)
           
 void readGraph(java.lang.String topology)
           
 void run()
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metrics

public Metrics()
Method Detail

readGraph

public void readGraph(java.lang.String topology)

parseArgs

public void parseArgs(java.lang.String[] args)

run

public void run()
Main method.


main

public static void main(java.lang.String[] args)