KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > historic > NodeHistoric


1 package hero.historic;
2
3 /**
4 *
5 * Bonita
6 * Copyright (C) 1999 Bull S.A.
7 * Bull 68 route de versailles 78434 Louveciennes Cedex France
8 * Further information: bonita@objectweb.org
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 * USA
24 *
25 *
26 --------------------------------------------------------------------------
27 * $Id: NodeHistoric.java,v 1.1 2004/10/01 15:32:18 mvaldes Exp $
28 *
29 --------------------------------------------------------------------------
30 */

31
32 import java.io.Serializable JavaDoc;
33 import java.util.Vector JavaDoc;
34
35 public final class NodeHistoric implements Serializable JavaDoc, java.lang.Cloneable JavaDoc {
36
37     // --------------------------------------------------- Instance Variables
38

39     /**
40      * The name of the node
41      */

42     private String JavaDoc name = "";
43
44     /**
45      * The state of the node
46      */

47     private String JavaDoc state = "";
48
49     /**
50      * The role of the node
51      */

52     private String JavaDoc role = "";
53     
54     /**
55      * The executor of the node
56      */

57     private String JavaDoc executor = "";
58
59     /**
60      * The type of the node
61      */

62     private String JavaDoc type = "";
63
64     /**
65      * If this node is anticipable
66      */

67     private boolean anticipable = true ;
68
69     /**
70      * The description of the node
71      */

72     private String JavaDoc description= "";
73     
74     /**
75      * The start date of the node
76      */

77     private String JavaDoc startDate = "";
78     
79     /**
80      * The end date of the node
81      */

82     private String JavaDoc endDate = "";
83     
84     /**
85      * Node properties
86      */

87     private Vector JavaDoc properties;
88
89
90     // ----------------------------------------------------------- Properties
91

92     /**
93      * Get the name
94      *@return String
95      */

96     public String JavaDoc getName() {
97         return (name);
98     }
99
100     /**
101      * Set the name.
102      * @param name
103      */

104     public void setName(String JavaDoc name) {
105         this.name = name;
106     }
107
108     /**
109      * Get the state
110      *@return String
111      */

112     public String JavaDoc getState() {
113         return (state);
114     }
115
116     /**
117      * Set the state.
118      * @param state
119      */

120     public void setState(String JavaDoc state) {
121         this.state = state;
122     }
123
124     /**
125      * Get the type
126      *@return String
127      */

128     public String JavaDoc getType() {
129         return (type);
130     }
131
132     /**
133      * Set the type.
134      * @param type
135      */

136     public void setType(String JavaDoc type) {
137         this.type = type;
138     }
139
140     /**
141      * Get the role
142      *@return String
143      */

144     public String JavaDoc getRole() {
145         return (role);
146     }
147
148     /**
149      * Set the role.
150      * @param role
151      */

152     public void setRole(String JavaDoc role) {
153         this.role = role;
154     }
155
156     /**
157      * Get the anticipable property
158      *@return boolean
159      */

160     public boolean getAnticipable() {
161         return (anticipable);
162     }
163
164     /**
165      * Set the anticipable property
166      * @param anticipable
167      */

168     public void setAnticipable(boolean anticipable) {
169         this.anticipable = anticipable;
170     }
171
172     /**
173      * Get the description of the activity
174      *@return String
175      */

176     public String JavaDoc getDescription() {
177         return (description);
178     }
179
180     /**
181      * Set the description of the activity
182      * @param description
183      */

184     public void setDescription(String JavaDoc description) {
185         this.description = description;
186     }
187
188     /**
189      * Get the startDate of the activity
190      *@return String
191      */

192     public String JavaDoc getStartDate() {
193         return (startDate);
194     }
195
196     /**
197      * Set the startDate of the activity
198      * @param startDate
199      */

200     public void setStartDate(String JavaDoc startDate) {
201         this.startDate = startDate;
202     }
203     
204     /**
205      * Get the endate of the activity
206      *@return String
207      */

208     public String JavaDoc getEndDate() {
209         return (endDate);
210     }
211
212     /**
213      * Set the endDate of the activity
214      * @param endDate
215      */

216     public void setEndDate(String JavaDoc endDate) {
217         this.endDate = endDate;
218     }
219     
220     /**
221      * Get the executor of the activity
222      *@return String
223      */

224     public String JavaDoc getExecutor() {
225         return (executor);
226     }
227
228     /**
229      * Set the executor of the activity
230      * @param executor
231      */

232     public void setExecutor(String JavaDoc executor) {
233         this.executor = executor;
234     }
235     
236     public Vector JavaDoc getProperties() {
237         return (properties);
238     }
239
240     public void setProperties(Vector JavaDoc properties) {
241         this.properties = properties;
242     }
243
244     public NodeHistoric(){}
245
246     public Object JavaDoc clone() throws java.lang.CloneNotSupportedException JavaDoc{
247     return super.clone();
248     }
249
250 }
251
Popular Tags