MATSIM
HullNode.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * *
4  * *********************************************************************** *
5  * *
6  * copyright : (C) 2013 by the members listed in the COPYING, *
7  * LICENSE and WARRANTY file. *
8  * email : info at matsim dot org *
9  * *
10  * *********************************************************************** *
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * See also COPYING, LICENSE and WARRANTY file *
17  * *
18  * *********************************************************************** */
19 
20 package org.matsim.core.network.algorithms.intersectionSimplifier.containers;
21 
22 import org.locationtech.jts.geom.Coordinate;
23 
24 public class HullNode {
26  private int id;
27 
29  private Coordinate coordinate;
30 
33  private boolean border;
34 
35 
44  public HullNode(int id, Coordinate coordinate) {
45  this.id = id;
46  this.setCoordinate(coordinate);
47  this.border = false; /* Default is false. */
48  }
49 
50 
57  public int getId() {
58  return this.id;
59  }
60 
67  public void setId(int id) {
68  this.id = id;
69  }
70 
77  public Coordinate getCoordinate() {
78  return this.coordinate;
79  }
80 
87  public void setCoordinate(Coordinate c) {
88  this.coordinate = c;
89  }
90 
99  public boolean isBorder() {
100  return this.border;
101  }
102 
111  public void setBorder(boolean border) {
112  this.border = border;
113  }
114 }