1   /*
2    * @(#) DEVSSimulatorTest.java Sep 4, 2003
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.dsol.simulators;
11  
12  import nl.tudelft.simulation.dsol.experiment.Experiment;
13  import nl.tudelft.simulation.dsol.simulators.DEVSSimulator;
14  
15  /***
16   * The DEVSSimulatorTest test the DEVS Simulator <br>
17   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
18   * University of Technology </a>, the Netherlands. <br>
19   * See for project information <a
20   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
21   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
22   * License (GPL) </a>, no warranty <br>
23   * 
24   * @version 2.0 21.09.2003 <br>
25   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
26   *         Jacobs </a>, <a
27   *         href="http://www.tbm.tudelft.nl/webstaf/alexandv/index.htm">Alexander
28   *         Verbraeck </a>
29   */
30  public class DEVSSimulatorTest extends SimulatorTest
31  {
32  	/***
33  	 * constructs a new DEVSSimulatorTest
34  	 */
35  	public DEVSSimulatorTest()
36  	{
37  		super(new DEVSSimulator());
38  	}
39  
40  	/***
41  	 * @see nl.tudelft.simulation.dsol.simulators.SimulatorTest#test()
42  	 */
43  	public void test()
44  	{
45  		super.test();
46  		Experiment experiment = TestExperiment.createExperiment();
47  		experiment.setModel(new DEVSTestModel(experiment));
48  
49  		experiment.setSimulator(new DEVSSimulator());
50  		experiment.start();
51  
52  	}
53  
54  	/***
55  	 * The main method
56  	 * 
57  	 * @param args command-line input
58  	 */
59  	public static void main(final String[] args)
60  	{
61  		new DEVSSimulatorTest().test();
62  	}
63  }