edu.unm.cs.cs351.tdrl.f06.p2
Interface OrderReceipt<S>
public interface OrderReceipt<S>
Representation of a receipt of an order. When a new order is
received by the factory, it generates one of these receipts
back to the World to indicate that the order is
now being processed. In the future, the customer can use this
receipt as an ID when communicating back to the factory. The
ID provides a linkage to allow the customer to specify changes
to an order.
This type is parameterized by the type S, allowing the
CONTRACTOR to develop a custom data type for the unique order
ID information. While the customer ID is generated by the
World, the order ID is generated by the simulator and
may be of any type that the CONTRACTOR finds convenient.
Implementations of this type MUST provide correct
Object.equals(Object) and Object.hashCode()
methods.
- Version:
- 1.0
- Author:
- terran
getCustomerID
int getCustomerID()
getOrderID
S getOrderID()