-
Notifications
You must be signed in to change notification settings - Fork 0
/
Job.java
61 lines (47 loc) · 1.13 KB
/
Job.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package project;
public class Job {
private int startCodeIndex, codeSize, startMemoryIndex, currentIP, currentAcc;
private States currentState;
public int getStartCodeIndex() {
return startCodeIndex;
}
public void setStartCodeIndex(int startcodeIndex) {
this.startCodeIndex = startcodeIndex;
}
public int getCodeSize() {
return codeSize;
}
public void setCodeSize(int codeSize) {
this.codeSize = codeSize;
}
public int getStartMemoryIndex() {
return startMemoryIndex;
}
public void setStartMemoryIndex(int startmemoryIndex) {
this.startMemoryIndex = startmemoryIndex;
}
public int getCurrentIP() {
return currentIP;
}
public void setCurrentIP(int currentIP) {
this.currentIP = currentIP;
}
public int getCurrentAcc() {
return currentAcc;
}
public void setCurrentAcc(int currentAcc) {
this.currentAcc = currentAcc;
}
public States getCurrentState() {
return currentState;
}
public void setCurrentState(States currentState) {
this.currentState = currentState;
}
public void reset(){
codeSize = 0;
currentAcc = 0;
currentIP = startCodeIndex;
currentState = States.NOTHING_LOADED;
}
}