~ubuntu-branches/ubuntu/oneiric/weka/oneiric

« back to all changes in this revision

Viewing changes to weka/core/AttributeExpression.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner, Soeren Sonnenburg, Torsten Werner
  • Date: 2008-08-10 21:27:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080810212705-tr8etpnkdx2ziktp
Tags: 3.5.8-1
[ Soeren Sonnenburg ]
* Bump Standards Version to 3.8.0.
* Remove references to non-free Java in debian/copyright.

[ Torsten Werner ]
* new upstream release
* Switch to openjdk-6.
* Move package to main.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
package weka.core;
24
24
 
25
 
import weka.core.Instance;
26
 
 
27
25
import java.io.Serializable;
28
 
import java.util.Enumeration;
29
26
import java.util.Stack;
30
27
import java.util.StringTokenizer;
31
28
import java.util.Vector;
42
39
 * floor, ceil, rint, tan, sin, (, ).
43
40
 *
44
41
 * @author Mark Hall
45
 
 * @version $Revision 1.0 $
 
42
 * @version $Revision: 1.5 $
46
43
 */
47
 
public class AttributeExpression implements Serializable {
 
44
public class AttributeExpression
 
45
  implements Serializable, RevisionHandler {
48
46
 
49
47
  /** for serialization */
50
48
  static final long serialVersionUID = 402130123261736245L;
53
51
   * Inner class handling an attribute index as an operand
54
52
   */
55
53
  private class AttributeOperand 
56
 
    implements Serializable {
 
54
    implements Serializable, RevisionHandler {
57
55
    
58
56
    /** for serialization */
59
57
    static final long serialVersionUID = -7674280127286031105L;
88
86
      }
89
87
      return result+"a"+(m_attributeIndex+1);
90
88
    }
 
89
    
 
90
    /**
 
91
     * Returns the revision string.
 
92
     * 
 
93
     * @return          the revision
 
94
     */
 
95
    public String getRevision() {
 
96
      return RevisionUtils.extract("$Revision: 1.5 $");
 
97
    }
91
98
  }
92
99
 
93
100
  /**
94
101
   * Inner class for storing numeric constant opperands
95
102
   */
96
103
  private class NumericOperand 
97
 
    implements Serializable {
 
104
    implements Serializable, RevisionHandler {
98
105
    
99
106
    /** for serialization */
100
107
    static final long serialVersionUID = 9037007836243662859L;
123
130
    public String toString() {
124
131
      return ""+m_numericConst;
125
132
    }
 
133
    
 
134
    /**
 
135
     * Returns the revision string.
 
136
     * 
 
137
     * @return          the revision
 
138
     */
 
139
    public String getRevision() {
 
140
      return RevisionUtils.extract("$Revision: 1.5 $");
 
141
    }
126
142
  }
127
143
 
128
144
  /**
129
145
   * Inner class for storing operators
130
146
   */
131
147
  private class Operator 
132
 
    implements Serializable {
 
148
    implements Serializable, RevisionHandler {
133
149
    
134
150
    /** for serialization */
135
151
    static final long serialVersionUID = -2760353522666004638L;
209
225
    public String toString() {
210
226
      return ""+m_operator;
211
227
    }
 
228
    
 
229
    /**
 
230
     * Returns the revision string.
 
231
     * 
 
232
     * @return          the revision
 
233
     */
 
234
    public String getRevision() {
 
235
      return RevisionUtils.extract("$Revision: 1.5 $");
 
236
    }
212
237
  }
213
238
 
214
239
  /** Operator stack */
546
571
  public String toString() {
547
572
    return m_originalInfix;
548
573
  }
 
574
  
 
575
  /**
 
576
   * Returns the revision string.
 
577
   * 
 
578
   * @return            the revision
 
579
   */
 
580
  public String getRevision() {
 
581
    return RevisionUtils.extract("$Revision: 1.5 $");
 
582
  }
549
583
}