org.gscg.experiment.scenario
Class Scenario

java.lang.Object
  extended byorg.gscg.experiment.scenario.Scenario
All Implemented Interfaces:
java.io.Serializable

public class Scenario
extends java.lang.Object
implements java.io.Serializable

The Scenario specifies the parameters for a simulation experiment
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.*

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:01 $
Author:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form

Field Summary
static java.lang.String SCENARIO_ANALYST
          SCENARIO_ANALYST the analyst name property
static java.lang.String SCENARIO_NAME
          SCENARIO_NAME the name property
 
Constructor Summary
Scenario()
          constructs a new Scenario
 
Method Summary
 Event[] getActions()
           
 java.lang.String getProperty(java.lang.String key)
          returns a property
 nl.tudelft.simulation.dsol.simulators.SimulatorInterface getSimulator()
          returns the simulator
 java.net.URL getUrl()
          returns the URL
 void setActions(Event[] actions)
          sets the actions
 void setProperty(java.lang.String key, java.lang.String value)
          sets a property
 void setSimulator(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
          sets the simulator
 void setUrl(java.net.URL url)
          sets the URL of the experiment
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCENARIO_NAME

public static final java.lang.String SCENARIO_NAME
SCENARIO_NAME the name property

See Also:
Constant Field Values

SCENARIO_ANALYST

public static final java.lang.String SCENARIO_ANALYST
SCENARIO_ANALYST the analyst name property

See Also:
Constant Field Values
Constructor Detail

Scenario

public Scenario()
constructs a new Scenario

Method Detail

setSimulator

public void setSimulator(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
sets the simulator

Parameters:
simulator - the simulator

getSimulator

public nl.tudelft.simulation.dsol.simulators.SimulatorInterface getSimulator()
returns the simulator

Returns:
SimulatorInterface

getUrl

public java.net.URL getUrl()
returns the URL

Returns:
URL

getProperty

public java.lang.String getProperty(java.lang.String key)
returns a property

Parameters:
key - properties are stored as key-value
Returns:
String the property

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
sets a property

Parameters:
key - properties are stored in key-value pairs
value - properties are stored in key-value pairs

setActions

public void setActions(Event[] actions)
sets the actions

Parameters:
actions - reflect the actions

setUrl

public void setUrl(java.net.URL url)
sets the URL of the experiment

Parameters:
url - the URL

getActions

public Event[] getActions()
Returns:
Returns the actions.

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.