be.ac.ulg.montefiore.run.totem.domain.simplifiedDomain
Class SimplifiedDomainBuilder

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.simplifiedDomain.SimplifiedDomainBuilder

public class SimplifiedDomainBuilder
extends java.lang.Object

Transform a Domain into a SimplifiedDomain and inversely

Creation date: 13-Jan-2005 10:39:15

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Constructor Summary
SimplifiedDomainBuilder()
           
 
Method Summary
static SimplifiedDomain build(Domain domain)
          Build a SimplifiedDomain from a Domain
static void upload(SimplifiedDomain sDomain, Domain domain)
          Upload a SimplifiedDomain in a Domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplifiedDomainBuilder

public SimplifiedDomainBuilder()
Method Detail

build

public static SimplifiedDomain build(Domain domain)
Build a SimplifiedDomain from a Domain

Parameters:
domain -
Returns:

upload

public static void upload(SimplifiedDomain sDomain,
                          Domain domain)
                   throws SimplifiedDomainException
Upload a SimplifiedDomain in a Domain. WARNING : this method must be use carrefully. This method suppose that each link is the SimplifiedDomain exists also in the Domain with the same src and dst nodes otherwise a SimplifiedDomainException is throwed. This method only update the bandwidth, metric and delay of the link in the Domain. TO DO : remove or add the nodes and links from the SimplifiedDomain to the Domain.

Parameters:
sDomain -
domain -
Throws:
SimplifiedDomainException


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