source: src/main/java/weka/associations/tertius/IndividualLiteral.java @ 8

Last change on this file since 8 was 4, checked in by gnappo, 14 years ago

Import di weka.

File size: 1.8 KB
Line 
1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *    GNU General Public License for more details.
11 *
12 *    You should have received a copy of the GNU General Public License
13 *    along with this program; if not, write to the Free Software
14 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 *    IndividualLiteral.java
19 *    Copyright (C) 2003 Peter A. Flach, Nicolas Lachiche
20 *
21 *    Thanks to Amelie Deltour for porting the original C code to Java
22 *    and integrating it into Weka.
23 *
24 */
25
26package weka.associations.tertius;
27
28import weka.core.RevisionUtils;
29
30/**
31 * @author Peter A. Flach
32 * @author Nicolas Lachiche
33 * @version $Revision: 1.5 $
34 */
35public class IndividualLiteral extends AttributeValueLiteral {
36
37  /** for serialization */
38  private static final long serialVersionUID = 4712404824517887435L;
39 
40  private int m_type;
41  public static int INDIVIDUAL_PROPERTY = 0;
42  public static int PART_PROPERTY = 1;
43 
44  public IndividualLiteral(Predicate predicate, String value, int index,
45                           int sign, int missing, int type) {
46
47    super(predicate, value, index, sign, missing);
48    m_type = type;
49  }
50 
51  public int getType() {
52
53    return m_type;
54  }
55 
56  /**
57   * Returns the revision string.
58   *
59   * @return            the revision
60   */
61  public String getRevision() {
62    return RevisionUtils.extract("$Revision: 1.5 $");
63  }
64}
Note: See TracBrowser for help on using the repository browser.