edu.gmu.dparker3.sludge
Class SupplyRecord

java.lang.Object
  extended byedu.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

Field Summary
 double qtySoFar
           
 double quantity
           
 double reservationPrice
           
 
Constructor Summary
SupplyRecord(double reservationPrice, double quantity)
           
 
Method Summary
 void addQty(double qty)
           
 double getQtySoFar()
           
 double getQuantity()
           
 double getReservationPrice()
           
static void main(java.lang.String[] args)
           
 void setQtySoFar(double qty)
           
 java.lang.String toString()
           
 void updateRecord(double qty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reservationPrice

public double reservationPrice

quantity

public double quantity

qtySoFar

public double qtySoFar
Constructor Detail

SupplyRecord

public SupplyRecord(double reservationPrice,
                    double quantity)
Method Detail

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)