package org.opentrafficsim.demo.ntm; import java.util.LinkedHashSet; import java.util.Set; import org.locationtech.jts.geom.Geometry; /** *

* Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License. *

* $LastChangedDate$, @version $Revision$, by $Author$, * initial version 7 Oct 2014
* @author Alexander Verbraeck * @author Hans van Lint * @author Peter Knoppers * @author Guus Tamminga * @author Yufei Yuan */ public class GeoObject { /** *

* Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. *
* BSD-style license. See OpenTrafficSim License. *

* $LastChangedDate$, @version $Revision$, by $Author$, * initial version 7 Oct 2014
* @author Alexander Verbraeck * @author Hans van Lint * @author Peter Knoppers * @author Guus Tamminga * @author Yufei Yuan */ /** */ private Geometry geometry; /** Touching areas. */ private final Set touchingAreas = new LinkedHashSet<>(); /** * @param geometry Geometry; */ public GeoObject(final Geometry geometry) { super(); this.geometry = geometry; } /** * @return geometry */ public final Geometry getGeometry() { return this.geometry; } /** * @return touchingAreas */ public final Set getTouchingAreas() { return this.touchingAreas; } }