1 package org.opentrafficsim.water.role;
2
3 import org.opentrafficsim.water.AbstractNamedLocated;
4
5 import nl.tudelft.simulation.language.d3.DirectedPoint;
6
7 /**
8 * <p>
9 * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
11 * </p>
12 * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
13 * initial version Dec 22, 2016 <br>
14 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
15 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
16 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
17 */
18 public class Company extends AbstractNamedLocated
19 {
20
21 /** code for the company. */
22 final String code;
23
24 /**
25 * @param code String; code
26 * @param name String; name
27 * @param location DirectedPoint; location
28 */
29 public Company(final String code, final String name, final DirectedPoint location)
30 {
31 super(name, location);
32 this.code = code;
33 }
34
35 /**
36 * @return code
37 */
38 public final String getCode()
39 {
40 return this.code;
41 }
42
43 }