View Javadoc

1   /*
2    * SentOrderConfirmationData.java Created @ Jul 7, 2004
3    * 
4    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * See for project information <a href="http://www.simulation.tudelft.nl/">
8    * www.simulation.tudelft.nl </a>.
9    * 
10   * The source code and binary code of this software is proprietary information
11   * of Delft University of Technology.
12   */
13  
14  package org.gscg.singleuser.interactionlayer.dataobjects.content;
15  
16  
17  /***
18   * Contains data for an order confirmation. This object is send to a client-side
19   * graphical user interface and is used to update information related an order
20   * confirmation.
21   * <p>
22   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
23   * Delft, the Netherlands. All rights reserved.
24   * 
25   * See for project information <a href="http://www.simulation.tudelft.nl/">
26   * www.simulation.tudelft.nl </a>.
27   * 
28   * The source code and binary code of this software is proprietary information
29   * of Delft University of Technology.
30   * 
31   * @author <a
32   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
33   *         van Houten </a>
34   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:56 $
35   * @since 1.0.0
36   */
37  public class SentOrderConfirmationData extends ContentData
38  {
39  	/*** the serial version uid */
40  	private static final long serialVersionUID = 11L;
41  
42  	/*** the order data */
43  	private OrderData orderData = null;
44  
45  	/*** the confirmation status */
46  	private int confirmationStatus = Integer.MIN_VALUE;
47  
48  	/***
49  	 * constructs a new SentOrderConfirmationData
50  	 * 
51  	 * @param orderData the order data for this confirmation
52  	 * @param confirmationStatus the confirmation statusw
53  	 */
54  	public SentOrderConfirmationData(final OrderData orderData,
55  			final int confirmationStatus)
56  	{
57  		super(orderData.getReceiverName(), orderData
58  				.getReceiverLocationDescription(), orderData.getSenderName(),
59  				orderData.getSenderLocationDescription());
60  		this.orderData = orderData;
61  		this.confirmationStatus = confirmationStatus;
62  	}
63  
64  	/***
65  	 * @return Returns the orderData.
66  	 */
67  	public OrderData getOrderData()
68  	{
69  		return this.orderData;
70  	}
71  
72  	/***
73  	 * @return Returns the confirmation status
74  	 */
75  	public int getConfirmationStatus()
76  	{
77  		return this.confirmationStatus;
78  	}
79  }