All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orderprocessing.OrderProcessor

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

public class OrderProcessor
extends java.lang.Object
This class accepts and fulfills orders from customers


Variable Index

 o orderProcessor

Method Index

 o generateInvoice(Order)
Generate an invoice from an order.
 o newOrder(String, Vector, Date)
Generate an order object from string data sent to it

Variables

 o orderProcessor
 public static orderprocessing.OrderProcessor orderProcessor

Methods

 o newOrder
 public orderprocessing.Order newOrder(java.lang.String customer,
                                       java.util.Vector items,
                                       java.util.Date orderDate)
Generate an order object from string data sent to it

Parameters:
customer - String with name, address, city... tilde ("~") separated
items - A Vector of strings each of which is a quantity, itemnumber, price, and description. Space separation between fields.
orderDate - The date of this order.
Returns:
an Order for these items. Note that this is a Factory Method (pattern) for Order objects
 o generateInvoice
 public orderprocessing.Invoice generateInvoice(orderprocessing.Order order)
Generate an invoice from an order.

Parameters:
order - An order previously placed by a customer.
Returns:
An Invoice for items that can be shipped.

All Packages  Class Hierarchy  This Package  Previous  Next  Index