Class Order

java.lang.Object
  |
  +--Order

public class Order
extends Object

A group of parcels in one order for storage in the warehouse.


Field Summary
 boolean fragmented
          Whether or not this lot is fragmented.
 int number
          Unique number for this.
 Parcel[] parcels
          Parcels in this.
 
Constructor Summary
Order(int aNumber, Parcel[] parcels)
          Constructs an order with the given identifier and group of parcels.
 
Method Summary
 boolean contains(Parcel p)
          Returns whether or not this contains the given parcel.
protected  void setParcels(Parcel[] p)
          Sets the parcels for this to the given array.
 int size()
          Returns the number of parcels in this.
 String toString()
          Returns a string representation of this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

public int number
Unique number for this.


parcels

public Parcel[] parcels
Parcels in this.


fragmented

public boolean fragmented
Whether or not this lot is fragmented.

Constructor Detail

Order

public Order(int aNumber,
             Parcel[] parcels)
Constructs an order with the given identifier and group of parcels.

Parameters:
aNumber - number for the order
parcels - parcels for the order
Method Detail

size

public int size()
Returns the number of parcels in this.


setParcels

protected void setParcels(Parcel[] p)
Sets the parcels for this to the given array.

Parameters:
p - the array of parcels for this

contains

public boolean contains(Parcel p)
Returns whether or not this contains the given parcel.


toString

public String toString()
Returns a string representation of this.

Overrides:
toString in class Object