-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndDevice.java
More file actions
32 lines (29 loc) · 755 Bytes
/
EndDevice.java
File metadata and controls
32 lines (29 loc) · 755 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
package base;
public class EndDevice {
public int id;
public int processor;
public int memory;
public int storage;
public int xlocation;
public int ylocation;
/**
* @author Dixit Bhatta
* @id identifier
* @param processor processing demand
* @param memory memory demand
* @param storage storage demand
* @param xlocation x-coordinate in the grid
* @param ylocation y-coordinate in the grid
*/
public EndDevice(int id, int processor, int memory, int storage, int xlocation, int ylocation) {
this.id = id;
this.processor = processor;
this.memory = memory;
this.storage = storage;
this.xlocation = xlocation;
this.ylocation = ylocation;
}
public String toString() {
return (this.id + "=>" + this.processor);
}
}