-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemorySlot.java
More file actions
60 lines (45 loc) · 810 Bytes
/
Copy pathMemorySlot.java
File metadata and controls
60 lines (45 loc) · 810 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import java.util.*;
public class MemorySlot {
int sTime;
int eTime;
int size;
int eSize;
boolean used;
public MemorySlot(){
this.sTime = 0;
this.eTime = 0;
this.size = 0;
this.eSize = 0;
this.used = false;
}
public void setSTime(int item){
this.sTime = item;
}
public void setETime(int item){
this.eTime = item;
}
public void setSize(){
this.size = this.eTime - this.sTime;
}
public void setESize(int item){
this.eSize = item;
}
public void setUsed(boolean item){
this.used = item;
}
public int getSTime(){
return sTime;
}
public int getETime(){
return eTime;
}
public int getSize(){
return size;
}
public int getESize(){
return eSize;
}
public boolean getUsed(){
return used;
}
}