edu.gmu.dparker3.sludge
Class SupplyRecord
java.lang.Object
edu.gmu.dparker3.sludge.SupplyRecord
- public class SupplyRecord
- extends java.lang.Object
holds three fields: reservationPrice, quantity, qtySoFar
methods for access this info
qtysofar is calculated by the SupplyList which sums info from all supplyrecords
- Version:
- 1.0
- Author:
- Robert Najlis
|
Constructor Summary |
SupplyRecord(double reservationPrice,
double quantity)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
reservationPrice
public double reservationPrice
quantity
public double quantity
qtySoFar
public double qtySoFar
SupplyRecord
public SupplyRecord(double reservationPrice,
double quantity)
getReservationPrice
public double getReservationPrice()
addQty
public void addQty(double qty)
getQuantity
public double getQuantity()
updateRecord
public void updateRecord(double qty)
setQtySoFar
public void setQtySoFar(double qty)
getQtySoFar
public double getQtySoFar()
toString
public java.lang.String toString()
main
public static void main(java.lang.String[] args)