1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.gscg.singleuser.interactionlayer.dataobjects.content;
15
16 import java.io.Serializable;
17
18 import javax.vecmath.Point2d;
19
20 import org.gscg.singleuser.interactionlayer.dataobjects.DateIntData;
21
22 /***
23 * Contains data for the suppliers to which a request for quote can be send.
24 * This object is send to a client-side graphical user interface and is used to
25 * update information related to the suppliers.
26 * <p>
27 * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
28 * Delft, the Netherlands. All rights reserved.
29 *
30 * See for project information <a href="http://www.simulation.tudelft.nl/">
31 * www.simulation.tudelft.nl </a>.
32 *
33 * The source code and binary code of this software is proprietary information
34 * of Delft University of Technology.
35 *
36 * @author <a
37 * href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
38 * van Houten </a>
39 * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:56 $
40 * @since 1.0.0
41 */
42 public class RFQDataSuppliers implements Serializable
43 {
44 /*** the serial version uid */
45 private static final long serialVersionUID = 11L;
46
47 /*** the sender name */
48 private String senderName;
49
50 /*** the receivers names */
51 private String[] suppliers;
52
53 /*** the receivers nick names */
54 private String[] suppliersNickNames;
55
56 /*** the earliest delivery */
57 private DateIntData earliestDelivery = null;
58
59 /*** the latest delivery */
60 private DateIntData latestDelivery = null;
61
62 /*** the amount */
63 private double amount = 0;
64
65 /*** the product name */
66 private String productName = null;
67
68 /*** the location of actor */
69 private Point2d ownLocation = null;
70
71 /*** the locations of the suppliers */
72 private Point2d[] suppliersLocations = null;
73
74 /***
75 * constructs a new RFQDataSuppliers
76 *
77 * @param senderName the name of the sender
78 * @param suppliers the suppliers
79 * @param suppliersNickNames the nick names of the suppliers
80 * @param earliestDelivery the earliest delivery
81 * @param latestDelivery the latest delivery
82 * @param amount the amount
83 * @param productName the name of the product
84 * @param ownLocation the own location
85 * @param suppliersLocations the locations of the suppliers
86 */
87 public RFQDataSuppliers(final String senderName, final String[] suppliers,
88 final String[] suppliersNickNames,
89 final DateIntData earliestDelivery,
90 final DateIntData latestDelivery, final double amount,
91 final String productName, final Point2d ownLocation,
92 final Point2d[] suppliersLocations)
93 {
94 super();
95 this.senderName = senderName;
96 this.suppliers = suppliers;
97 this.suppliersNickNames = suppliersNickNames;
98 this.earliestDelivery = earliestDelivery;
99 this.latestDelivery = latestDelivery;
100 this.amount = amount;
101 this.productName = productName;
102 this.ownLocation = ownLocation;
103 this.suppliersLocations = suppliersLocations;
104 }
105
106 /***
107 * @return Returns the amount.
108 */
109 public double getAmount()
110 {
111 return this.amount;
112 }
113
114 /***
115 * @return Returns the earliestDelivery.
116 */
117 public DateIntData getEarliestDelivery()
118 {
119 return this.earliestDelivery;
120 }
121
122 /***
123 * @return Returns the latestDelivery.
124 */
125 public DateIntData getLatestDelivery()
126 {
127 return this.latestDelivery;
128 }
129
130 /***
131 * @return Returns the productName.
132 */
133 public String getProductName()
134 {
135 return this.productName;
136 }
137
138 /***
139 * @return Returns the senderName.
140 */
141 public String getSenderName()
142 {
143 return this.senderName;
144 }
145
146 /***
147 * @return Returns the suppliers.
148 */
149 public String[] getSuppliers()
150 {
151 return this.suppliers;
152 }
153
154 /***
155 * @return Returns the nick names of the suppliers
156 */
157 public String[] getSuppliersNickNames()
158 {
159 return this.suppliersNickNames;
160 }
161
162 /***
163 * @return Returns the own location
164 */
165 public Point2d getOwnLocation()
166 {
167 return this.ownLocation;
168 }
169
170 /***
171 * @return Returns the locations of the suppliers
172 */
173 public Point2d[] getSuppliersLocations()
174 {
175 return this.suppliersLocations;
176 }
177 }