1 /** 2 * 3 */ 4 package org.opentrafficsim.water; 5 6 /** 7 * Base abstract class for a named object. 8 * <p> 9 * Copyright (c) 2013-2019 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 * <p> 13 * Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving 14 * and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived 15 * products to third parties. 16 * </p> 17 * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, 18 * initial version Nov 6, 2016 <br> 19 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 20 */ 21 public abstract class AbstractNamed implements Named 22 { 23 /** */ 24 private static final long serialVersionUID = 1L; 25 26 /** name. */ 27 private String name; 28 29 /** 30 * @param name String; the name 31 */ 32 public AbstractNamed(final String name) 33 { 34 this.name = name; 35 } 36 37 /** {@inheritDoc} */ 38 @Override 39 public final String getName() 40 { 41 return this.name; 42 } 43 44 }