View Javadoc

1   /*
2    * @(#) DemandStatisticsChangedData.java Jan 1, 2005
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  package org.gscg.common.gui.statistics.data;
14  
15  import java.io.Serializable;
16  
17  import nl.tudelft.simulation.event.TimedEvent;
18  
19  /***
20   * <p>
21   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
22   * Delft, the Netherlands. All rights reserved.
23   * 
24   * See for project information <a href="http://www.simulation.tudelft.nl/">
25   * www.simulation.tudelft.nl </a>.
26   * 
27   * The source code and binary code of this software is proprietary information
28   * of Delft University of Technology.
29   * 
30   * @author <a
31   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
32   *         van Houten </a>
33   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:34:09 $
34   * @since 1.0.0 <br>
35   */
36  public class DemandStatisticsChangedData implements Serializable
37  {
38  	/*** the serial version uid */
39  	private static final long serialVersionUID = 11L;
40  
41  	/*** the name of the product */
42  	private String productName = null;
43  
44  	/*** the event */
45  	private TimedEvent timedEvent = null;
46  
47  	/***
48  	 * constructs a new DemandStatisticsChangedData
49  	 * 
50  	 * @param productName the name of the product the demand has changed for
51  	 * @param timedEvent the event containing the changed demand
52  	 */
53  	public DemandStatisticsChangedData(final String productName,
54  			final TimedEvent timedEvent)
55  	{
56  		super();
57  		this.productName = productName;
58  		this.timedEvent = timedEvent;
59  	}
60  
61  	/***
62  	 * @return Returns the name of the product
63  	 */
64  	public String getProductName()
65  	{
66  		return this.productName;
67  	}
68  
69  	/***
70  	 * @return Returns the event
71  	 */
72  	public TimedEvent getTimedEvent()
73  	{
74  		return this.timedEvent;
75  	}
76  }