-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.java
More file actions
64 lines (48 loc) · 1.1 KB
/
Process.java
File metadata and controls
64 lines (48 loc) · 1.1 KB
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
62
63
64
package Simulation;
import java.util.Random;
public class Process {
int size;
int startAddress;
int endAddress;
//startAddress = processSquareY, endAddress = processSquareH
int processSquareX, processSquareY, processSquareW, processSquareH;
public Process() {
Random random = new Random();
size = random.nextInt(8) + 3;
processSquareX = 40;
processSquareW = 60;
}
public int getX() {
return processSquareX;
}
public void setX(int x) {
this.processSquareX = x;
}
public int getY() {
return processSquareY;
}
public void setY(int y) {
this.processSquareY = y;
}
public int getH() {
return processSquareH;
}
public void setH(int H) {
this.processSquareH = H;
}
public int getW() {
return processSquareW;
}
public int getStartAddress() {
return processSquareY;
}
public void setStartAddress(int startAddress) {
this.startAddress = startAddress;
}
public int getEndAddress() {
return processSquareH;
}
public void setEndAddress(int endAddress) {
this.endAddress = endAddress;
}
}