001: package hero.historic;
002:
003: /**
004: *
005: * Bonita
006: * Copyright (C) 1999 Bull S.A.
007: * Bull 68 route de versailles 78434 Louveciennes Cedex France
008: * Further information: bonita@objectweb.org
009: *
010: * This library is free software; you can redistribute it and/or
011: * modify it under the terms of the GNU Lesser General Public
012: * License as published by the Free Software Foundation; either
013: * version 2.1 of the License, or any later version.
014: *
015: * This library is distributed in the hope that it will be useful,
016: * but WITHOUT ANY WARRANTY; without even the implied warranty of
017: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018: * Lesser General Public License for more details.
019: *
020: * You should have received a copy of the GNU Lesser General Public
021: * License along with this library; if not, write to the Free Software
022: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
023: * USA
024: *
025: *
026: --------------------------------------------------------------------------
027: * $Id: NodeHistoric.java,v 1.1 2004/10/01 15:32:18 mvaldes Exp $
028: *
029: --------------------------------------------------------------------------
030: */
031:
032: import java.io.Serializable;
033: import java.util.Vector;
034:
035: public final class NodeHistoric implements Serializable,
036: java.lang.Cloneable {
037:
038: // --------------------------------------------------- Instance Variables
039:
040: /**
041: * The name of the node
042: */
043: private String name = "";
044:
045: /**
046: * The state of the node
047: */
048: private String state = "";
049:
050: /**
051: * The role of the node
052: */
053: private String role = "";
054:
055: /**
056: * The executor of the node
057: */
058: private String executor = "";
059:
060: /**
061: * The type of the node
062: */
063: private String type = "";
064:
065: /**
066: * If this node is anticipable
067: */
068: private boolean anticipable = true;
069:
070: /**
071: * The description of the node
072: */
073: private String description = "";
074:
075: /**
076: * The start date of the node
077: */
078: private String startDate = "";
079:
080: /**
081: * The end date of the node
082: */
083: private String endDate = "";
084:
085: /**
086: * Node properties
087: */
088: private Vector properties;
089:
090: // ----------------------------------------------------------- Properties
091:
092: /**
093: * Get the name
094: *@return String
095: */
096: public String getName() {
097: return (name);
098: }
099:
100: /**
101: * Set the name.
102: * @param name
103: */
104: public void setName(String name) {
105: this .name = name;
106: }
107:
108: /**
109: * Get the state
110: *@return String
111: */
112: public String getState() {
113: return (state);
114: }
115:
116: /**
117: * Set the state.
118: * @param state
119: */
120: public void setState(String state) {
121: this .state = state;
122: }
123:
124: /**
125: * Get the type
126: *@return String
127: */
128: public String getType() {
129: return (type);
130: }
131:
132: /**
133: * Set the type.
134: * @param type
135: */
136: public void setType(String type) {
137: this .type = type;
138: }
139:
140: /**
141: * Get the role
142: *@return String
143: */
144: public String getRole() {
145: return (role);
146: }
147:
148: /**
149: * Set the role.
150: * @param role
151: */
152: public void setRole(String 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 getDescription() {
177: return (description);
178: }
179:
180: /**
181: * Set the description of the activity
182: * @param description
183: */
184: public void setDescription(String description) {
185: this .description = description;
186: }
187:
188: /**
189: * Get the startDate of the activity
190: *@return String
191: */
192: public String getStartDate() {
193: return (startDate);
194: }
195:
196: /**
197: * Set the startDate of the activity
198: * @param startDate
199: */
200: public void setStartDate(String startDate) {
201: this .startDate = startDate;
202: }
203:
204: /**
205: * Get the endate of the activity
206: *@return String
207: */
208: public String getEndDate() {
209: return (endDate);
210: }
211:
212: /**
213: * Set the endDate of the activity
214: * @param endDate
215: */
216: public void setEndDate(String endDate) {
217: this .endDate = endDate;
218: }
219:
220: /**
221: * Get the executor of the activity
222: *@return String
223: */
224: public String getExecutor() {
225: return (executor);
226: }
227:
228: /**
229: * Set the executor of the activity
230: * @param executor
231: */
232: public void setExecutor(String executor) {
233: this .executor = executor;
234: }
235:
236: public Vector getProperties() {
237: return (properties);
238: }
239:
240: public void setProperties(Vector properties) {
241: this .properties = properties;
242: }
243:
244: public NodeHistoric() {
245: }
246:
247: public Object clone() throws java.lang.CloneNotSupportedException {
248: return super.clone();
249: }
250:
251: }
|