-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCongressionalDistrict2.java
66 lines (52 loc) · 2.42 KB
/
CongressionalDistrict2.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
public class CongressionalDistrict2 {
private int stateFIPS; // FIPS code identifying state/territory
private int districtNum; // Congressional District number for the 118th Congress
private long aLand; // Land area in square meters
private long aWater; // Water area in square meters
private double intptLat; // Latitude of district's center point
private double intptLon; // Longitude of district's center point
private double shapeArea; // Area of the district's shape
private double shapeLength; // Length of the district's shape
private StateOfficial representative;
// Constructor
public CongressionalDistrict2(
int stateFIPS,
int districtNum,
long aLand,
long aWater,
double intptLat,
double intptLon,
double shapeArea,
double shapeLength,
StateOfficial representative
) {
this.stateFIPS = stateFIPS;
this.districtNum = districtNum;
this.aLand = aLand;
this.aWater = aWater;
this.intptLat = intptLat;
this.intptLon = intptLon;
this.shapeArea = shapeArea;
this.shapeLength = shapeLength;
this.representative = representative;
}
// Getter and Setter methods
public int getStateFIPS() { return stateFIPS; }
public void setStateFIPS(int stateFIPS) { this.stateFIPS = stateFIPS; }
public int getDistrictNum() { return districtNum; }
public void setDistrictNum(int districtNum) { this.districtNum = districtNum; }
public long getALand() { return aLand; }
public void setALand(long aLand) { this.aLand = aLand; }
public long getAWater() { return aWater; }
public void setAWater(long aWater) { this.aWater = aWater; }
public double getIntptLat() { return intptLat; }
public void setIntptLat(double intptLat) { this.intptLat = intptLat; }
public double getIntptLon() { return intptLon; }
public void setIntptLon(double intptLon) { this.intptLon = intptLon; }
public double getShapeArea() { return shapeArea; }
public void setShapeArea(double shapeArea) { this.shapeArea = shapeArea; }
public double getShapeLength() { return shapeLength; }
public void setShapeLength(double shapeLength) { this.shapeLength = shapeLength; }
public StateOfficial getRepresentative() { return representative; }
public void setRepresentative(StateOfficial representative) { this.representative = representative; }
}