be.ac.ulg.montefiore.run.totem.scenario.model
Class Scenario
java.lang.Object
be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioTypeImpl
be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioImpl
be.ac.ulg.montefiore.run.totem.scenario.model.Scenario
- All Implemented Interfaces:
- Scenario, ScenarioType, UnmarshallableObject, ValidatableObject, XMLSerializable, com.sun.xml.bind.JAXBObject, com.sun.xml.bind.RIElement, javax.xml.bind.Element
public class Scenario
- extends ScenarioImpl
This class extends ScenarioImpl
to enable the use of
"distributed scenario schemas".
If attributes are changed in the schema, the Unmarshaller.enterElement(.)
method must be changed manually.
Creation date: 03-mars-2005
- Author:
- Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)
Fields inherited from class be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioImpl |
version |
Method Summary |
void |
addEvent(Event event)
Shortcut for getEvent().add(.) |
UnmarshallingEventHandler |
createUnmarshaller(UnmarshallingContext context)
Creates an unmarshaller that will unmarshall this object. |
java.lang.String |
getScenarioPath()
Gets the absolute directory from which the relative paths (in the events) should be interpreted. |
void |
setScenarioPath(java.lang.String scenarioPath)
Sets the absolute directory from which the relative paths (in the events) should be interpreted.
The scenario path is set on the scenario loading and depends on the absolute filename of the scenario and on
the attribute pathsRelativeTo of the scenario root element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Scenario
public Scenario()
getScenarioPath
public java.lang.String getScenarioPath()
- Gets the absolute directory from which the relative paths (in the events) should be interpreted.
- Returns:
setScenarioPath
public void setScenarioPath(java.lang.String scenarioPath)
- Sets the absolute directory from which the relative paths (in the events) should be interpreted.
The scenario path is set on the scenario loading and depends on the absolute filename of the scenario and on
the attribute pathsRelativeTo
of the scenario root element.
- Parameters:
scenarioPath
-
addEvent
public void addEvent(Event event)
- Shortcut for
getEvent().add(.)
- Parameters:
event
-
createUnmarshaller
public UnmarshallingEventHandler createUnmarshaller(UnmarshallingContext context)
- Description copied from interface:
UnmarshallableObject
- Creates an unmarshaller that will unmarshall this object.
- Specified by:
createUnmarshaller
in interface UnmarshallableObject
- Overrides:
createUnmarshaller
in class ScenarioImpl
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.