bcds.phison.cmd
Class CostChanger

java.lang.Object
  extended by bcds.phison.cmd.CostChanger

public class CostChanger
extends java.lang.Object

Change the costs of links in a topology file. By default, the output is written to stdout in .sgf format.

Note: If the topology had a traffic matrix it is discarded in the output provided by this class.

See the output of --help for a description of parameters and operation.


Constructor Summary
CostChanger()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void parseArgs(java.lang.String[] args)
           
 void print_matrices()
           
 void readGraph()
           
 void run()
           
 void setCost(Link e, double c, java.util.Set<Link> already_seen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CostChanger

public CostChanger()
Method Detail

readGraph

public void readGraph()

parseArgs

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

print_matrices

public void print_matrices()

setCost

public void setCost(Link e,
                    double c,
                    java.util.Set<Link> already_seen)

run

public void run()

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException