Package Model
Class ReplenishmentRequest
java.lang.Object
Model.ReplenishmentRequest
-
Constructor Summary
ConstructorDescriptionReplenishmentRequest
(String medicineName, int quantity) used for creating new requestsReplenishmentRequest
(String medicineName, int quantity, boolean fulfilled) used for loading from file -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
setFulfilled
(boolean fulfilled) void
setMedicineName
(String medicineName) void
setQuantity
(int quantity) toString()
-
Constructor Details
-
ReplenishmentRequest
used for creating new requests- Parameters:
medicineName
- name of the medicinequantity
- quantity of the medicine
-
ReplenishmentRequest
used for loading from file
-
-
Method Details
-
isFulfilled
public boolean isFulfilled() -
setFulfilled
public void setFulfilled(boolean fulfilled) -
getMedicineName
-
setMedicineName
-
getQuantity
public int getQuantity() -
setQuantity
public void setQuantity(int quantity) -
toString
-