View Javadoc

1   /*
2    * @(#) Port.java Jan 19, 2004
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.tutorial.section45;
11  
12  import nl.tudelft.simulation.dsol.formalisms.Resource;
13  import nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface;
14  
15  /***
16   * A Port <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 href="http://www.simulation.tudelft.nl">
20   * 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 1.0 Jan 19, 2004 <br>
25   * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
26   *         Jacobs </a>
27   */
28  public class Port
29  {
30  	/*** the jetties working in the harbor */
31  	private Resource jetties = null;
32  
33  	/*** the tugs working in the port */
34  	private Resource tugs = null;
35  
36  	/***
37  	 * constructs a new Port
38  	 * 
39  	 * @param simulator the simulator
40  	 */
41  	public Port(final DEVSSimulatorInterface simulator)
42  	{
43  		super();
44  		this.jetties = new Resource(simulator, "Jetties", 2.0);
45  		this.tugs = new Resource(simulator, "Tugs", 3.0);
46  	}
47  
48  	/***
49  	 * @return Returns the jetties.
50  	 */
51  	public Resource getJetties()
52  	{
53  		return this.jetties;
54  	}
55  
56  	/***
57  	 * @return Returns the tugs.
58  	 */
59  	public Resource getTugs()
60  	{
61  		return this.tugs;
62  	}
63  }