public class Region extends AbstractNamed implements Comparable<Region>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived products to third parties.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 6, 2016Constructor and Description |
---|
Region(String name,
Region superRegion,
com.vividsolutions.jts.geom.Coordinate center) |
Modifier and Type | Method and Description |
---|---|
void |
addCurrentExportTEUperYear(double newExportTEUPerYear) |
void |
addCurrentImportTEUperYear(double newImportTEUPerYear) |
int |
compareTo(Region other) |
com.vividsolutions.jts.geom.MultiPolygon |
getArea() |
com.vividsolutions.jts.geom.Coordinate |
getCenter() |
double |
getCurrentExportTEUperYear() |
double |
getCurrentImportTEUperYear() |
double |
getExportEmptyFactor() |
double |
getExportTonTEU() |
double |
getImportEmptyFactor() |
double |
getImportTonTEU() |
double |
getInhabitants() |
double |
getJobs() |
com.vividsolutions.jts.geom.Coordinate |
getNextLocationInArea() |
Region |
getSuperRegion() |
boolean |
isInArea(com.vividsolutions.jts.geom.Point p) |
void |
setArea(com.vividsolutions.jts.geom.MultiPolygon area) |
void |
setCurrentExportTEUperYear(double newExportTEUPerYear) |
void |
setCurrentImportTEUperYear(double newImportTEUPerYear) |
void |
setExportEmptyFactor(double exportEmptyFactor) |
void |
setExportTonTEU(double exportTonTEU) |
void |
setImportEmptyFactor(double importEmptyFactor) |
void |
setImportTonTEU(double importTonTEU) |
protected void |
setInhabitants(double inhabitants) |
void |
setJobs(double jobs) |
String |
toString() |
getName
public final Region getSuperRegion()
public final void setJobs(double jobs)
jobs
- the jobs to setpublic final double getJobs()
public final com.vividsolutions.jts.geom.Coordinate getCenter()
public final double getInhabitants()
protected final void setInhabitants(double inhabitants)
inhabitants
- set inhabitantspublic final double getExportTonTEU()
public final void setExportTonTEU(double exportTonTEU)
exportTonTEU
- the exportTonTEU to setpublic final double getImportTonTEU()
public final void setImportTonTEU(double importTonTEU)
importTonTEU
- the importTonTEU to setpublic final double getExportEmptyFactor()
public final void setExportEmptyFactor(double exportEmptyFactor)
exportEmptyFactor
- the exportEmptyFactor to setpublic final double getImportEmptyFactor()
public final void setImportEmptyFactor(double importEmptyFactor)
importEmptyFactor
- the importEmptyFactor to setpublic final double getCurrentExportTEUperYear()
public final void setCurrentExportTEUperYear(double newExportTEUPerYear)
newExportTEUPerYear
- update currentExportTEUperYearpublic final void addCurrentExportTEUperYear(double newExportTEUPerYear)
newExportTEUPerYear
- add to currentExportTEUperYearpublic final double getCurrentImportTEUperYear()
public final void setCurrentImportTEUperYear(double newImportTEUPerYear)
newImportTEUPerYear
- update currentExportTEUperYearpublic final void addCurrentImportTEUperYear(double newImportTEUPerYear)
newImportTEUPerYear
- add to currentExportTEUperYearpublic final com.vividsolutions.jts.geom.MultiPolygon getArea()
public final void setArea(com.vividsolutions.jts.geom.MultiPolygon area)
area
- the area to setpublic final com.vividsolutions.jts.geom.Coordinate getNextLocationInArea()
public final boolean isInArea(com.vividsolutions.jts.geom.Point p)
p
- pointpublic final int compareTo(Region other)
compareTo
in interface Comparable<Region>
Copyright © 2014–2018 Delft University of Technology. All rights reserved.