View Javadoc
1   /**
2    * 
3    */
4   package org.opentrafficsim.water;
5   
6   import nl.tudelft.simulation.language.d3.DirectedPoint;
7   
8   /**
9    * Base abstract class for a named, located object.
10   * <p>
11   * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
13   * </p>
14   * <p>
15   * Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving
16   * and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived
17   * products to third parties.
18   * </p>
19   * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
20   * initial version Nov 6, 2016 <br>
21   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
22   */
23  public abstract class AbstractNamedLocated extends AbstractLocated implements Named
24  {
25      /** */
26      private static final long serialVersionUID = 1L;
27  
28      /** name. */
29      private String name;
30  
31      /**
32       * @param name the name
33       * @param location the location
34       */
35      public AbstractNamedLocated(final String name, final DirectedPoint location)
36      {
37          super(location);
38          this.name = name;
39      }
40  
41      /** {@inheritDoc} */
42      @Override
43      public final String getName()
44      {
45          return this.name;
46      }
47  
48  }