orderprocessing
Class InventoryManager

java.lang.Object
  |
  +--orderprocessing.InventoryManager

public class InventoryManager
extends java.lang.Object

This class manages inventory and responds to requests from an OrderProcessor In this version it is just a stub. It says that anything is in stock and does no error checking of any kind. TODO Inventory Manager is just a stub


Field Summary
static InventoryManager standardInventoryManager
           
 
Constructor Summary
InventoryManager()
           
 
Method Summary
 OrderItem available(OrderItem order)
          Tells if a given order can be filled now
static void close(java.io.ObjectOutputStream out)
          Write the inventory onto an output stream
static void open(java.io.ObjectInputStream in)
          Read the inventory into memory at the beginning of a run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardInventoryManager

public static InventoryManager standardInventoryManager
Constructor Detail

InventoryManager

public InventoryManager()
Method Detail

available

public OrderItem available(OrderItem order)
Tells if a given order can be filled now

close

public static final void close(java.io.ObjectOutputStream out)
                        throws java.io.IOException
Write the inventory onto an output stream
Parameters:
out - the object stream to write to
Throws:
java.io.IOException -  

open

public static final void open(java.io.ObjectInputStream in)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
Read the inventory into memory at the beginning of a run
Parameters:
in - the Object stream to read from
Throws:
java.io.IOException -  
java.lang.ClassNotFoundException -