be.ac.ulg.montefiore.run.totem.util
Class DomainFileConvertor

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.util.DomainFileConvertor

public class DomainFileConvertor
extends java.lang.Object

Converts domains from various schema version

Creation date: 12 juil. 2006

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
DomainFileConvertor()
           
 
Method Summary
static void addLocation(java.lang.String fileName, java.lang.String targetFileName)
           
static void domainUcl2Domain10(java.lang.String fileName, java.lang.String targetFileName)
          Converts domains with schema located in http://totem.info.ucl.ac.be/Schema/Domain.xsd to v1.1
static void updateDomain10To11(java.lang.String fileName, java.lang.String targetFileName)
          Upgrade the Schema instance number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainFileConvertor

public DomainFileConvertor()
Method Detail

updateDomain10To11

public static void updateDomain10To11(java.lang.String fileName,
                                      java.lang.String targetFileName)
                               throws java.io.IOException
Upgrade the Schema instance number. Add the units part in information part. Default units are mbps for bandwidth and ms for delay. It also tries to respect the indentation when adding the units part. Info element must be alone on a line. This function only adds bandwidth and delay units if units part is not present.

Parameters:
fileName -
targetFileName -
Throws:
java.io.IOException

domainUcl2Domain10

public static void domainUcl2Domain10(java.lang.String fileName,
                                      java.lang.String targetFileName)
                               throws java.io.IOException
Converts domains with schema located in http://totem.info.ucl.ac.be/Schema/Domain.xsd to v1.1

Parameters:
fileName -
targetFileName -
Throws:
java.io.IOException

addLocation

public static void addLocation(java.lang.String fileName,
                               java.lang.String targetFileName)
                        throws java.io.IOException
Throws:
java.io.IOException


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