edu.gmu.dparker3.sludge
Class SupplyList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byjava.util.LinkedList
                  extended byedu.gmu.dparker3.sludge.SupplyList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class SupplyList
extends java.util.LinkedList

holds all supply records for one time step, organizes them so they are in correct order sums qty so far (breakpoints) for all records

Version:
1.0
Author:
Robert Najlis
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.LinkedList
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.LinkedList
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SupplyList()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void sumQuantites()
           
 java.lang.String toString()
           
 void update(double resPrice, double qty)
          add a supply record if that res price already exists, then update the existing re price with the added production if not, add this supply record in the appropriate place
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SupplyList

public SupplyList()
Method Detail

update

public void update(double resPrice,
                   double qty)
add a supply record if that res price already exists, then update the existing re price with the added production if not, add this supply record in the appropriate place


sumQuantites

public void sumQuantites()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)