be.ac.ulg.montefiore.run.totem.repository.tomography.utils
Class ColtConverter

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.tomography.utils.ColtConverter

public class ColtConverter
extends java.lang.Object

Creation date: 02-avr.-2006

Author:
Quentin Chevalier (quentin.chevalier@gmail.com)

Constructor Summary
ColtConverter()
           
 
Method Summary
 TrafficMatrix coltToTraffixMatrix(Domain domain, RoutingMatrix routMat, cern.colt.matrix.DoubleMatrix1D tm)
          Convert a colt matrix into a trafficMatrix
 void coltToTraffixMatrix(Domain domain, RoutingMatrix routMat, cern.colt.matrix.DoubleMatrix1D tm, TrafficMatrix ref)
           
 cern.colt.matrix.DoubleMatrix2D routingMatrixToColt(RoutingMatrix routMat)
          Method that convert a routing matrix into colt matrix data structure
 cern.colt.matrix.DoubleMatrix1D traffixMatrixToColt(RoutingMatrix routMat, TrafficMatrix tm)
          Method that convert a traffic matrix into colt matrix data structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColtConverter

public ColtConverter()
Method Detail

routingMatrixToColt

public cern.colt.matrix.DoubleMatrix2D routingMatrixToColt(RoutingMatrix routMat)
Method that convert a routing matrix into colt matrix data structure

Parameters:
routMat - the matrix to convert
Returns:
the colt 2D matrix

traffixMatrixToColt

public cern.colt.matrix.DoubleMatrix1D traffixMatrixToColt(RoutingMatrix routMat,
                                                           TrafficMatrix tm)
                                                    throws NodeNotFoundException
Method that convert a traffic matrix into colt matrix data structure

Parameters:
routMat - the routing matrix associated with the tm
tm - the traffic matrix to convert
Returns:
the colt 1D matrix
Throws:
NodeNotFoundException

coltToTraffixMatrix

public TrafficMatrix coltToTraffixMatrix(Domain domain,
                                         RoutingMatrix routMat,
                                         cern.colt.matrix.DoubleMatrix1D tm)
                                  throws NodeNotFoundException,
                                         InvalidDomainException
Convert a colt matrix into a trafficMatrix

Parameters:
domain - the domain associated with the tm
routMat - the routing matrix associated with the tm
tm - the tm (in 1D colt matrix) to convert
Returns:
the TrafficMatrix structure
Throws:
NodeNotFoundException
InvalidDomainException

coltToTraffixMatrix

public void coltToTraffixMatrix(Domain domain,
                                RoutingMatrix routMat,
                                cern.colt.matrix.DoubleMatrix1D tm,
                                TrafficMatrix ref)
                         throws NodeNotFoundException,
                                InvalidDomainException
Throws:
NodeNotFoundException
InvalidDomainException


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