01: /*
02: * $Id: Condition.java 520 2005-09-14 08:18:37Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.sf.net).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.model;
15:
16: /**
17: * @author hengels
18: */
19: public class Condition extends Element implements Implementable {
20: private boolean temporal;
21: private String implementation = "";
22:
23: public Condition(String name) {
24: super (name);
25: }
26:
27: public Condition(String name, String implementation) {
28: super (name);
29: this .implementation = implementation;
30: }
31:
32: public Condition() {
33: super (null);
34: }
35:
36: public boolean isTemporal() {
37: return temporal;
38: }
39:
40: public void setTemporal(boolean temporal) {
41: boolean old = this .temporal;
42: this .temporal = temporal;
43: changes.firePropertyChange("temporal", old, temporal);
44: }
45:
46: public String getImplementation() {
47: return implementation;
48: }
49:
50: public void setImplementation(String implementation) {
51: Object old = this .implementation;
52: this .implementation = implementation;
53: changes.firePropertyChange("implementation", old,
54: implementation);
55: }
56: }
|