Skip to content

Commit

Permalink
Create Request Class (#11) (#32)
Browse files Browse the repository at this point in the history
* Create Request Class (#11)

* Remove cluster (#11)
  • Loading branch information
GNeves95 authored May 14, 2021
1 parent 665d034 commit 76ae219
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 59 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ out/*

APDescription.txt
MTPs-Main-Container.txt

#idea settings folder
.idea
.idea/*
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/libraries/jade.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/libraries/jade2.xml

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/libraries/org_junit_jupiter_junit_jupiter_5_4_2.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

59 changes: 59 additions & 0 deletions src/agents/Request.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package agents;

import map.GraphNode;

public class Request {
private String id;
private String parentId;
private int numBoxes;
private GraphNode destination;
private String deliveryTime;

public Request(String id, String parentId, int numBoxes, GraphNode destination, String deliveryTime) {
this.id = id;
this.parentId = parentId;
this.numBoxes = numBoxes;
this.destination = destination;
this.deliveryTime = deliveryTime;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getParentId() {
return parentId;
}

public void setParentId(String parentId) {
this.parentId = parentId;
}

public int getNumBoxes() {
return numBoxes;
}

public void setNumBoxes(int numBoxes) {
this.numBoxes = numBoxes;
}

public GraphNode getDestination() {
return destination;
}

public void setDestination(GraphNode destination) {
this.destination = destination;
}

public String getDeliveryTime() {
return deliveryTime;
}

public void setDeliveryTime(String deliveryTime) {
this.deliveryTime = deliveryTime;
}
}

0 comments on commit 76ae219

Please sign in to comment.