mirror of
https://github.com/zach-sb/COMP2240-Assignment1.git
synced 2024-07-02 12:04:00 +10:00
51 lines
982 B
Java
51 lines
982 B
Java
public class Process {
|
|
|
|
private String id;
|
|
private int arrive;
|
|
private int execSize;
|
|
private int tickets;
|
|
|
|
//Constructors
|
|
public Process(){
|
|
}
|
|
|
|
public Process(String idInput, int arriveInput, int execSizeInput, int ticketsInput) {
|
|
id = idInput;
|
|
arrive = arriveInput;
|
|
execSize = execSizeInput;
|
|
tickets = ticketsInput;
|
|
}
|
|
|
|
//Setters
|
|
public void setId(String idInput){
|
|
id = idInput;
|
|
}
|
|
|
|
public void setArrive(int arriveInput){
|
|
arrive = arriveInput;
|
|
}
|
|
|
|
public void setSize(int execSizeInput){
|
|
execSize = execSizeInput;
|
|
}
|
|
public void setTickets(int ticketsInput){
|
|
tickets = ticketsInput;
|
|
}
|
|
|
|
//Getters
|
|
public String getId(){
|
|
return id;
|
|
}
|
|
|
|
public int getArrive(){
|
|
return arrive;
|
|
}
|
|
|
|
public int getExecSize(){
|
|
return execSize;
|
|
}
|
|
|
|
public int getTickets(){
|
|
return tickets;
|
|
}
|
|
} |