be.ac.ulg.montefiore.run.totem.topgen.util
Class BooleanRoutingMatrix

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.topgen.util.RoutingMatrix
      extended by be.ac.ulg.montefiore.run.totem.topgen.util.BooleanRoutingMatrix

public class BooleanRoutingMatrix
extends RoutingMatrix

This class represents a {0,1} routing matrix. The element (i,j) is equal to 0 if link i doesn't belong to the path associated to origin-destination (OD) pair j, and the element (i,j) is equal to 1 otherwise.

Creation date: 2004

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Constructor Summary
BooleanRoutingMatrix(Domain domain)
          Initialises and computes a newly created routing matrix for the domain domain according to the SPF algorithm.
BooleanRoutingMatrix(SPF spf, Domain domain, boolean stopOnError)
          Initialises and computes a newly created routing matrix for the domain domain according to the SPF algorithm.
 
Method Summary
 void recompute()
          Recomputes the routing matrix.
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.topgen.util.RoutingMatrix
add, getColumn, getElement, getIds, getKey, getNbColumns, getNbRows, getRow, set, setSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanRoutingMatrix

public BooleanRoutingMatrix(Domain domain)
                     throws RoutingException,
                            NoRouteToHostException
Initialises and computes a newly created routing matrix for the domain domain according to the SPF algorithm.

Throws:
RoutingException - If an error occurred during the routing.
NoRouteToHostException - If there is no route between a pair of nodes.

BooleanRoutingMatrix

public BooleanRoutingMatrix(SPF spf,
                            Domain domain,
                            boolean stopOnError)
                     throws RoutingException,
                            NoRouteToHostException
Initialises and computes a newly created routing matrix for the domain domain according to the SPF algorithm.

Throws:
RoutingException - If an error occurred during the routing.
NoRouteToHostException - If there is no route between a pair of nodes.
Method Detail

recompute

public void recompute()
               throws RoutingException,
                      NoRouteToHostException
Recomputes the routing matrix.

Specified by:
recompute in class RoutingMatrix
Throws:
RoutingException - If an error occured during the routing.
NoRouteToHostException - If there is no route between a pair of nodes.


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.