be.ac.ulg.montefiore.run.totem.scenario.model
Class Scenario

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioTypeImpl
      extended by be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioImpl
          extended by 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)

Nested Class Summary
 class Scenario.Unmarshaller
           
 class Scenario.UnmarshallerType
           
 
Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioImpl
version
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioTypeImpl
_Event, _PathsRelativeTo
 
Constructor Summary
Scenario()
           
 
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 be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioImpl
____jaxb_ri____getLocalName, ____jaxb_ri____getNamespaceURI, createRawValidator, getPrimaryInterface, serializeAttributes, serializeBody, serializeURIs
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.impl.ScenarioTypeImpl
_getEvent, getEvent, getPathsRelativeTo, isSetEvent, isSetPathsRelativeTo, setPathsRelativeTo, unsetEvent, unsetPathsRelativeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.scenario.model.jaxb.ScenarioType
getEvent, getPathsRelativeTo, isSetEvent, isSetPathsRelativeTo, setPathsRelativeTo, unsetEvent, unsetPathsRelativeTo
 

Constructor Detail

Scenario

public Scenario()
Method Detail

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.