-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHall.java
More file actions
40 lines (31 loc) · 960 Bytes
/
Hall.java
File metadata and controls
40 lines (31 loc) · 960 Bytes
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
public class Hall {
// fields to set the length(Weight), starting position and end position of a hallway
private Integer weight;
private Node startNode;
private Node destinationNode;
// constructor
public Hall(Integer weight, Node startNode, Node destinationNode) {
this.weight = weight;
this.startNode = startNode;
this.destinationNode = destinationNode;
}
// getters and setters
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public Node getStartNode() {
return startNode;
}
public void setStartNode(Node startNode) {
this.startNode = startNode;
}
public Node getDestinationNode() {
return destinationNode;
}
public void setDestinationNode(Node destinationNode) {
this.destinationNode = destinationNode;
}
}