01: /**
02: * ProjectChange.java
03: * Copyright 2005 Carlos Silva A.
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */package com.csa.lgantt.model;
18:
19: /**
20: * ProjectChange
21: *
22: * <p>$Date: 2006/09/14 08:14:17 $</p>
23: * @version $Revision: 1.1 $
24: * @author Carlos Silva
25: */
26: public class ProjectChange extends Change {
27: public static final int TASK_ADDED = 1;
28: public static final int TASK_MODIFIED = 2;
29: public static final int TASK_REMOVED = 3;
30: public static final int STRUCTURE = 4;
31: // mover, desenlazar, constraints
32: public static final int SNAPSHOT_ADDED = 5;
33: public static final int SNAPSHOT_REMOVED = 6;
34: public static final int FORCED_CHANGE = 7;
35: public static final int START_DATE = 8;
36: public static final int CONSTRAINT = 9;
37: public static final int OTHER = 100;
38:
39: /**
40: * @param id
41: */
42: public ProjectChange(int id) {
43: super (id);
44: }
45:
46: /**
47: * @param id
48: * @param source
49: */
50: public ProjectChange(int id, Object source) {
51: super (id, source);
52: }
53:
54: public ProjectChange(Task task) {
55: super (TASK_MODIFIED, task);
56: }
57:
58: public String toString() {
59: return "ProjectChange(" + id + ")";
60: }
61: }
|