blob: a68f6585c7803f4413f07960242788336b65b55c (
plain) (
blame)
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
|
package space.m0e.quga.oop.lab56maven.decisions;
public abstract class Decision {
private int executeWhen;
public boolean isComplete() {
return isComplete;
}
public void setComplete(boolean complete) {
isComplete = complete;
}
private boolean isComplete = false;
public Decision(int executeWhen) {
this.executeWhen = executeWhen;
}
public int getExecuteWhen() {
return executeWhen;
}
public void setExecuteWhen(int executeWhen) {
this.executeWhen = executeWhen;
}
public abstract void cycle();
@Override
public String toString() {
return String.format("Decision [executeWhen=%d, isComplete=%b]", executeWhen, isComplete);
}
}
|