be.ac.ulg.montefiore.run.totem.scenario.persistence
Class ScenarioFactory

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.scenario.persistence.ScenarioFactory

public class ScenarioFactory
extends java.lang.Object

The ScenarioFactory class is used to load/save scenarios.

Creation date: 03-d�c.-2004

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

Constructor Summary
ScenarioFactory()
           
 
Method Summary
static Scenario loadScenario(java.lang.String fileName)
          Loads the specified scenario XML file.
static void saveScenario(java.lang.String fileName, Scenario scenario)
          Saves the specified scenario object into the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioFactory

public ScenarioFactory()
Method Detail

loadScenario

public static Scenario loadScenario(java.lang.String fileName)
Loads the specified scenario XML file.

Parameters:
fileName - The XML file to load.
Returns:
The loaded scenario.

saveScenario

public static void saveScenario(java.lang.String fileName,
                                Scenario scenario)
Saves the specified scenario object into the specified file.

Parameters:
fileName - The targeted file.
scenario - The scenario to save.


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