-
Notifications
You must be signed in to change notification settings - Fork 0
/
State.java
37 lines (35 loc) · 896 Bytes
/
State.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
/**
* @author Amirhossein Alibakhshi (id: 9731096)
*/
public class State {
//fields:
private String title;
private boolean isStarsState;
private boolean IsFinalState;
//constructor:
public State(String title){
this.title = title;
//initial values:
this.isStarsState = false;
this.IsFinalState = false;
}
//setters and getters:
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public boolean isStarsState() {
return isStarsState;
}
public void setStarsState(boolean starsState) {
isStarsState = starsState;
}
public boolean isFinalState() {
return IsFinalState;
}
public void setFinalState(boolean finalState) {
IsFinalState = finalState;
}
}