-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJob.java
More file actions
34 lines (21 loc) · 723 Bytes
/
Job.java
File metadata and controls
34 lines (21 loc) · 723 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
//OUTLAB 1 by Zach Wadhams
public class Job {
public int jobNumber;
public int priority;
public int arrivalTime;
public int duration;
public int timeRan = 0;
public int waitTime = -1;
public int startTime = -1;
public Job(int jobNumber, int priority, int arrivalTime, int duration) { //constructor for job data type
this.jobNumber = jobNumber;
this.priority = priority;
this.arrivalTime = arrivalTime;
this.duration = duration;
}
public String toString() { //makes a special to string method
String myString = "" + jobNumber + " " + priority + " " + arrivalTime
+ " " + duration;
return myString;
}
}