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