be.ac.ulg.montefiore.run.totem.webGUI.topgen
Class WebApp

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.webGUI.topgen.WebApp

public class WebApp
extends java.lang.Object

This class implements the web-app part of the topology generator. It calls BRITE, generates traffic and returns the result in a zip file.

Creation date: 2004

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

Constructor Summary
WebApp()
          Initializes a newly created WebApp object.
 
Method Summary
 void createFile(java.lang.String fileName)
          This method prints the(s) compressed XML output(s) of the generation on the zip file fileName.
 void generate(java.lang.String pathParam)
          This method calls BRITE and generates traffic with the given parameters.
 WebAppParameters getParameters()
          Returns the current parameters.
 byte getStep()
          Gives the current step of the generation.
 void print(java.util.zip.ZipEntry e)
           
 void reset()
          Resets an existing WebApp object.
 void setParameters(WebAppParameters parameters)
          Sets the parameters.
 void setStep(byte step)
          Sets the current step of the generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApp

public WebApp()
Initializes a newly created WebApp object.

Method Detail

createFile

public void createFile(java.lang.String fileName)
                throws java.io.IOException,
                       java.util.zip.ZipException
This method prints the(s) compressed XML output(s) of the generation on the zip file fileName.

Throws:
java.io.IOException
java.util.zip.ZipException

print

public void print(java.util.zip.ZipEntry e)

generate

public void generate(java.lang.String pathParam)
              throws javax.xml.bind.JAXBException,
                     RoutingException,
                     TrafficGenerationException,
                     NoRouteToHostException,
                     java.io.FileNotFoundException,
                     java.lang.Exception
This method calls BRITE and generates traffic with the given parameters.

Parameters:
pathParam - The path where to create the "temp" directory to temporarily store the XML files.
Throws:
javax.xml.bind.JAXBException
RoutingException
TrafficGenerationException
NoRouteToHostException
java.io.FileNotFoundException
java.lang.Exception

getParameters

public WebAppParameters getParameters()
Returns the current parameters.


getStep

public byte getStep()
Gives the current step of the generation. First Step is 0.

Returns:
The current step of the generation.

reset

public void reset()
Resets an existing WebApp object. This function exists to permit several generations within the same session.


setParameters

public void setParameters(WebAppParameters parameters)
Sets the parameters.


setStep

public void setStep(byte step)
Sets the current step of the generation.



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