
public class Location extends Object
| Modifier and Type | Field and Description |
|---|---|
private Double |
easting |
private String |
id |
private Double |
northing |
private static Location |
nullLocation |
private Map<String,Integer> |
populations |
| Constructor and Description |
|---|
Location(String id,
Double easting,
Double northing,
Map<String,Integer> populations)
Create a new location from a location id and coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
static Location |
getNullLocation()
Get the NULL location, defined as the one with no id, coordinates or occupants.
|
private final String id
private final Double easting
private final Double northing
private static Location nullLocation
public Location(String id, Double easting, Double northing, Map<String,Integer> populations)
id - the location id.easting - the easting coordinate.northing - the northing coordinate.populations - a map of species type and number of animals.public static Location getNullLocation()
Copyright © 2015 University of Glasgow. All rights reserved.