forked from MGundersen/Program
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.java
More file actions
39 lines (31 loc) · 689 Bytes
/
Node.java
File metadata and controls
39 lines (31 loc) · 689 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
/**
* Created by MGund on 5/5/2016.
*/
public class Node {
private Node parent;
private Node child;
private Integer cost;
public Node(Node parent, Node child, Integer cost) {
this.parent = parent;
this.child = child;
this.cost = cost;
}
public Integer getCost() {
return cost;
}
public void setCost(Integer cost) {
this.cost = cost;
}
public Node getParent() {
return parent;
}
public void setParent(Node parent) {
this.parent = parent;
}
public Node getChild() {
return child;
}
public void setChild(Node child) {
this.child = child;
}
}