summaryrefslogtreecommitdiffstats
path: root/src/main/java/derms/replica/replica2/Resource.java
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-28 17:26:19 -0500
committerSam Anthony <sam@samanthony.xyz>2024-11-28 17:26:19 -0500
commit6654546671eea9f9becd32b3160a134802659cbc (patch)
treecefc60b322c4d2a2849bbec83682f379965ab48c /src/main/java/derms/replica/replica2/Resource.java
parentf3d0bfd50bdde4f96dc8ee603a7093d68201f114 (diff)
downloadsoen423-6654546671eea9f9becd32b3160a134802659cbc.zip
Replica2: restrict scope
Diffstat (limited to 'src/main/java/derms/replica/replica2/Resource.java')
-rw-r--r--src/main/java/derms/replica/replica2/Resource.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/derms/replica/replica2/Resource.java b/src/main/java/derms/replica/replica2/Resource.java
index e4b54a2..fd1b20d 100644
--- a/src/main/java/derms/replica/replica2/Resource.java
+++ b/src/main/java/derms/replica/replica2/Resource.java
@@ -2,15 +2,15 @@ package derms.replica.replica2;
import java.io.Serializable;
-public class Resource implements Serializable {
- public ResourceID id;
- public ResourceType type;
- public int duration;
- public boolean isBorrowed;
- public CoordinatorID borrower;
- public int borrowDuration;
+class Resource implements Serializable {
+ ResourceID id;
+ ResourceType type;
+ int duration;
+ boolean isBorrowed;
+ CoordinatorID borrower;
+ int borrowDuration;
- public Resource(ResourceID id, ResourceType type, int duration, boolean isBorrowed, CoordinatorID borrower, int borrowDuration) {
+ Resource(ResourceID id, ResourceType type, int duration, boolean isBorrowed, CoordinatorID borrower, int borrowDuration) {
this.id = id;
this.type = type;
this.duration = duration;
@@ -19,11 +19,11 @@ public class Resource implements Serializable {
this.borrowDuration = borrowDuration;
}
- public Resource(ResourceID id, ResourceType type, int duration) {
+ Resource(ResourceID id, ResourceType type, int duration) {
this(id, type, duration, false, new CoordinatorID(), -1);
}
- public Resource() {
+ Resource() {
this(new ResourceID(), ResourceType.AMBULANCE, 0);
}