|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.experiment.Experiment
public class Experiment
The Experiment specifies the parameters for a simulation experiment
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
static EventType |
END_OF_EXPERIMENT_EVENT
END_OF_EXPERIMENT_EVENT is fired when the experiment is ended |
static String |
EXPERIMENT_ANALYST
EXPERIMENT_ANALYST the analyst name property |
static String |
EXPERIMENT_NAME
EXPERIMENT_NAME the name property |
static EventType |
MODEL_CHANGED_EVENT
MODEL_CHANGED_EVENT is fired whenever the model is changed |
static EventType |
SIMULATOR_CHANGED_EVENT
SIMULATOR_CHANGED_EVENT is fired whenever the simulator is changed |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
---|
listeners |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
---|---|
Experiment()
constructs a new Experiment |
Method Summary | |
---|---|
ModelInterface |
getModel()
returns the model |
String |
getProperty(String key)
returns a property |
String |
getRun()
returns the current run |
SimulatorInterface |
getSimulator()
returns the simulator |
Treatment[] |
getTreatments()
Returns the treatments of this experiment |
URL |
getUrl()
returns the URL |
void |
notify(EventInterface event)
|
void |
reset()
resets the experiment |
void |
setModel(ModelInterface model)
sets the model on the experiment |
void |
setProperty(String key,
String value)
sets a property |
void |
setSimulator(SimulatorInterface simulator)
sets the simulator |
void |
setTreatments(Treatment[] treatments)
sets the treatments of an experiment |
void |
setUrl(URL url)
sets the URL of the experiment |
void |
start()
starts the experiment on a simulator |
String |
toString()
|
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EventType END_OF_EXPERIMENT_EVENT
public static final EventType MODEL_CHANGED_EVENT
public static final EventType SIMULATOR_CHANGED_EVENT
public static final String EXPERIMENT_NAME
public static final String EXPERIMENT_ANALYST
Constructor Detail |
---|
public Experiment()
Method Detail |
---|
public void setSimulator(SimulatorInterface simulator)
simulator
- the simulatorpublic SimulatorInterface getSimulator()
public String getRun()
public void start()
public String getProperty(String key)
key
- properties are stored as key-value
public void setProperty(String key, String value)
key
- properties are stored in key-value pairsvalue
- properties are stored in key-value pairspublic ModelInterface getModel()
public URL getUrl()
public void notify(EventInterface event)
notify
in interface EventListenerInterface
#notify(nl.tudelft.simulation.event.EventInterface)
public void reset()
public void setModel(ModelInterface model)
model
- the simulatormodelpublic Treatment[] getTreatments()
public void setTreatments(Treatment[] treatments)
treatments
- the treatmentspublic void setUrl(URL url)
url
- the URLpublic String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |