|
|||||||||||
| 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
The Experiment specifies the parameters for a simulation experiment
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
END_OF_EXPERIMENT_EVENT
END_OF_EXPERIMENT_EVENT is fired when the experiment is ended |
static java.lang.String |
EXPERIMENT_ANALYST
EXPERIMENT_ANALYST the analyst name property |
static java.lang.String |
EXPERIMENT_NAME
EXPERIMENT_NAME the name property |
static nl.tudelft.simulation.event.EventType |
MODEL_CHANGED_EVENT
MODEL_CHANGED_EVENT is fired whenever the model is changed |
static nl.tudelft.simulation.event.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 |
java.lang.String |
getProperty(java.lang.String key)
returns a property |
java.lang.String |
getRun()
returns the current run |
SimulatorInterface |
getSimulator()
returns the simulator |
Treatment[] |
getTreatments()
returns the treatments |
java.net.URL |
getUrl()
returns the URL |
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
void |
reset()
resets the experiment |
void |
setModel(ModelInterface model)
sets the model on the experiment |
void |
setProperty(java.lang.String key,
java.lang.String value)
sets a property |
void |
setSimulator(SimulatorInterface simulator)
sets the simulator |
void |
setTreatments(Treatment[] treatments)
sets the treatments |
void |
setUrl(java.net.URL url)
sets the URL of the experiment |
void |
start()
starts the experiment on a simulator |
java.lang.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 nl.tudelft.simulation.event.EventType END_OF_EXPERIMENT_EVENT
public static final nl.tudelft.simulation.event.EventType MODEL_CHANGED_EVENT
public static final nl.tudelft.simulation.event.EventType SIMULATOR_CHANGED_EVENT
public static final java.lang.String EXPERIMENT_NAME
public static final java.lang.String EXPERIMENT_ANALYST
| Constructor Detail |
public Experiment()
| Method Detail |
public void setSimulator(SimulatorInterface simulator)
simulator - the simulatorpublic SimulatorInterface getSimulator()
public java.lang.String getRun()
public void start()
public java.lang.String getProperty(java.lang.String key)
key - properties are stored as key-value
public void setProperty(java.lang.String key,
java.lang.String value)
key - properties are stored in key-value pairsvalue - properties are stored in key-value pairspublic ModelInterface getModel()
public java.net.URL getUrl()
public void notify(nl.tudelft.simulation.event.EventInterface event)
notify in interface nl.tudelft.simulation.event.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 - reflect the treatmentspublic void setUrl(java.net.URL url)
url - the URLpublic java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||