View Javadoc

1   /*
2    * SocialMessage.java Created @ Sep 24, 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.common.interactionlayer.dataobjects;
15  
16  import java.io.Serializable;
17  
18  /***
19   * A social messsage is sent between human controlled actors and game leader.
20   * <p>
21   * 
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:58 $
35   * @since 1.0.0
36   */
37  public class SocialMessage implements Serializable
38  {
39  	/*** the serial version uid */
40  	private static final long serialVersionUID = 11L;
41  
42  	/*** the content of the message */
43  	private String content = null;
44  
45  	/*** the name of the sender */
46  	private String senderName = null;
47  
48  	/*** the name of the receiver */
49  	private String receiverName = null;
50  
51  	/*** the simulation date the message was sent */
52  	private String date = null;
53  
54  	/*** the subject of the message */
55  	private String subject = null;
56  
57  	/***
58  	 * constructs a new SocialMessage
59  	 * 
60  	 * @param senderName the name of the sender
61  	 * @param receiverName the name of the receiver
62  	 * @param subject the subject of the message
63  	 * @param content the content of the message
64  	 */
65  	public SocialMessage(final String senderName, final String receiverName,
66  			final String subject, final String content)
67  	{
68  		super();
69  		this.senderName = senderName;
70  		this.receiverName = receiverName;
71  		this.subject = subject;
72  		this.content = content;
73  	}
74  
75  	/***
76  	 * Method getContent.
77  	 * 
78  	 * @return returns the content of the message
79  	 */
80  	public String getContent()
81  	{
82  		return this.content;
83  	}
84  
85  	/***
86  	 * Method getDate.
87  	 * 
88  	 * @return returns the date the message was sent.
89  	 */
90  	public String getDate()
91  	{
92  		return this.date;
93  	}
94  
95  	/***
96  	 * Method getReceiverName.
97  	 * 
98  	 * @return returns the name of the receiver.
99  	 */
100 	public String getReceiverName()
101 	{
102 		return this.receiverName;
103 	}
104 
105 	/***
106 	 * Method getSenderName.
107 	 * 
108 	 * @return returns the name of the sender.
109 	 */
110 	public String getSenderName()
111 	{
112 		return this.senderName;
113 	}
114 
115 	/***
116 	 * Method getSubject.
117 	 * 
118 	 * @return returns the subject of the message
119 	 */
120 	public String getSubject()
121 	{
122 		return this.subject;
123 	}
124 
125 	/***
126 	 * Method setDate.
127 	 * 
128 	 * @param date the date to set
129 	 */
130 	public void setDate(final String date)
131 	{
132 		this.date = date;
133 	}
134 }