01: /**
02: * Change.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: * Change, modelo de eventos
21: *
22: * <p>$Date: 2006/09/14 08:14:17 $</p>
23: * @version $Revision: 1.1 $
24: * @author Carlos Silva
25: */
26: public class Change {
27: int id;
28: Object source;
29: boolean isLast = true;
30:
31: public Change(int id) {
32: this (id, null);
33: }
34:
35: public Change(int id, Object source) {
36: this .id = id;
37: this .source = source;
38: }
39:
40: void setNotLast() {
41: isLast = false;
42: }
43:
44: public boolean isLast() {
45: return isLast;
46: }
47:
48: public int getId() {
49: return id;
50: }
51:
52: public Object getSource() {
53: return source;
54: }
55: }
|