Last change
on this file since 127 was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
553 bytes
|
Line | |
---|
1 | package agents.ai2014.group12;
|
---|
2 |
|
---|
3 | public class Node {
|
---|
4 | private String name;
|
---|
5 | private double value;
|
---|
6 | private boolean flagged;
|
---|
7 | public Node(String st, double va, boolean flag){
|
---|
8 | this.name = st;
|
---|
9 | this.value = va;
|
---|
10 | this.flagged = flag;
|
---|
11 | }
|
---|
12 |
|
---|
13 | public String getName(){
|
---|
14 | return name;
|
---|
15 | }
|
---|
16 | public void setName(String nm){
|
---|
17 | this.name = nm;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public double getValue(){
|
---|
21 | return value;
|
---|
22 | }
|
---|
23 | public void setValue(double va){
|
---|
24 | this.value = va;
|
---|
25 | }
|
---|
26 | public void setFlag(boolean flag) {
|
---|
27 | this.flagged = flag;
|
---|
28 | }
|
---|
29 | public boolean getFlag() {
|
---|
30 | return flagged;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.