-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserInput.java
More file actions
106 lines (83 loc) · 2.64 KB
/
UserInput.java
File metadata and controls
106 lines (83 loc) · 2.64 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/**
*
*/
package com.purdue.LawsonNavigator;
import java.io.Serializable;
/**
* @author ong0
* class that contains all of the user input, consisting of:
* - user's current coordinates in latitude and longitude (x,y)
* - user's current floor; basement, first, second, third
* - user's method of moving; stairs or elevators
* - user's final destination; in terms of a room number
* INCOMPLETE
*/
public class UserInput implements Serializable {
private Transport transport;
private Floor floor;
private Display displayOption;
private double latitude;
private double longitude;
private String roomNumber;
private String nonAcademicRoom;
private String professorName;
/**
* @category default constructor
*/
public UserInput() {
transport = null;
floor = null;
displayOption = null;
latitude = 0;
longitude = 0;
roomNumber = null;
nonAcademicRoom = null;
professorName = null;
}
public UserInput(Transport transport, Floor floor, Display displayOption, double latitude, double longitude, String roomNumber, String nonAcademicRoom, String professorName) {
this.transport = transport;
this.floor = floor;
this.displayOption = displayOption;
this.latitude = latitude;
this.longitude = longitude;
this.roomNumber = roomNumber;
this.nonAcademicRoom = nonAcademicRoom;
this.professorName = professorName;
}
public Transport getTransport() { return transport; }
public Floor getFloor() { return floor; }
public double getLatitude() { return latitude; }
public double getLongitude() { return longitude; }
//Added by Ryan Start
public String getRoomNumber() {return roomNumber;}
public String getNonAcademicRoom() {return nonAcademicRoom;}
public String getProfessorName() {return professorName;}
public Display getDisplayOption() {return displayOption;}
//Added by Ryan End
public void setTransport(Transport transport) {
this.transport = transport;
}
public void setFloor(Floor floor) {
this.floor = floor;
}
public void setDisplayOption(Display displayOption) {
this.displayOption = displayOption;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
//Added by Ryan Start
public void setRoomNumber(String roomNumber) {
this.roomNumber = roomNumber;
}
public void setNonAcademicRoom(String nonAcademicRoom) {
this.nonAcademicRoom = nonAcademicRoom;
}
public void setProfessorName(String professorName) {
this.professorName = professorName;
}
//Added by Ryan End
}