View Javadoc

1   /*
2    * $Id: DurationExpressionImpl.java,v 1.1 2004/12/15 14:18:10 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.model.expression.impl;
10  
11  import bexee.model.expression.DurationExpression;
12  
13  /***
14   * A default implementation of the <code>DurationExpression</code>.
15   * 
16   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:10 $
17   * @author Patric Fornasier
18   * @author Pawel Kowalski
19   */
20  public class DurationExpressionImpl extends ExpressionImpl implements
21          DurationExpression {
22  
23      //***************************************************/
24      // c'tors
25      //***************************************************/
26  
27      public DurationExpressionImpl(String durationExpression) {
28          super(durationExpression);
29      }
30  
31      //***************************************************/
32      // bexee.model.expression.Expression
33      //***************************************************/
34  
35      /*
36       * (non-Javadoc)
37       * 
38       * @see bexee.model.expression.Expression#evaluate()
39       */
40      public boolean evaluate() {
41          return false;
42      }
43  
44      //***************************************************/
45      // bexee.model.expression.DurationExpression
46      //***************************************************/
47  
48      /*
49       * (non-Javadoc)
50       * 
51       * @see bexee.model.expression.DurationExpression#setDurationExpression(java.lang.String)
52       */
53      public void setDurationExpression(String durationExpression) {
54          setExpressionLitteral(durationExpression);
55      }
56  
57      /*
58       * (non-Javadoc)
59       * 
60       * @see bexee.model.expression.DurationExpression#getDurationExpression()
61       */
62      public String getDurationExpression() {
63          return getExpressionLitteral();
64      }
65  
66  }