com.rapidminer.tools
Class Ontology

java.lang.Object
  extended by com.rapidminer.tools.Ontology

public class Ontology
extends java.lang.Object

Very simple ontology class. Two static ontologies are available: ATTRIBUTE_BLOCK_TYPE and ATTRIBUTE_VALUE_TYPE. It provides a single method boolean isA(int sub, int super) which does what isA-methods are usually expected to do. Legal parameters are the constants.

Author:
Simon Fischer, Ingo Mierswa

Field Summary
static int ATTRIBUTE_BLOCK
           
static Ontology ATTRIBUTE_BLOCK_TYPE
          An ontology for block types (single, time series...)
static int ATTRIBUTE_VALUE
           
static Ontology ATTRIBUTE_VALUE_TYPE
          An ontology for value types (nominal, numerical...)
static int BINOMINAL
           
static int BLOCK_TYPE
           
static java.lang.String[] BLOCK_TYPE_NAMES
           
static int DATE
           
static int DATE_TIME
           
static int FILE_PATH
           
static int INTEGER
           
static int NO_PARENT
           
static int NOMINAL
           
static int NUMERICAL
           
static int POLYNOMINAL
           
static int REAL
           
static int SINGLE_VALUE
           
static int STRING
           
static int TIME
           
static int VALUE_MATRIX
           
static int VALUE_MATRIX_END
           
static int VALUE_MATRIX_ROW_START
           
static int VALUE_MATRIX_START
           
static int VALUE_SERIES
           
static int VALUE_SERIES_END
           
static int VALUE_SERIES_START
           
static int VALUE_TYPE
           
static java.lang.String[] VALUE_TYPE_NAMES
           
 
Method Summary
 java.lang.String[] getNames()
           
 int getParent(int child)
           
 boolean isA(int child, int parent)
          Returns true if child is a parent.
 java.lang.String mapIndex(int index)
          Maps an index to its name.
 int mapName(java.lang.String name)
          Maps the name of a class to its index or -1 if unknown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_TYPE

public static final int VALUE_TYPE
See Also:
Constant Field Values

BLOCK_TYPE

public static final int BLOCK_TYPE
See Also:
Constant Field Values

NO_PARENT

public static final int NO_PARENT
See Also:
Constant Field Values

ATTRIBUTE_VALUE

public static final int ATTRIBUTE_VALUE
See Also:
Constant Field Values

NOMINAL

public static final int NOMINAL
See Also:
Constant Field Values

NUMERICAL

public static final int NUMERICAL
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

REAL

public static final int REAL
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

BINOMINAL

public static final int BINOMINAL
See Also:
Constant Field Values

POLYNOMINAL

public static final int POLYNOMINAL
See Also:
Constant Field Values

FILE_PATH

public static final int FILE_PATH
See Also:
Constant Field Values

DATE_TIME

public static final int DATE_TIME
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

TIME

public static final int TIME
See Also:
Constant Field Values

VALUE_TYPE_NAMES

public static final java.lang.String[] VALUE_TYPE_NAMES

ATTRIBUTE_VALUE_TYPE

public static final Ontology ATTRIBUTE_VALUE_TYPE
An ontology for value types (nominal, numerical...)


ATTRIBUTE_BLOCK

public static final int ATTRIBUTE_BLOCK
See Also:
Constant Field Values

SINGLE_VALUE

public static final int SINGLE_VALUE
See Also:
Constant Field Values

VALUE_SERIES

public static final int VALUE_SERIES
See Also:
Constant Field Values

VALUE_SERIES_START

public static final int VALUE_SERIES_START
See Also:
Constant Field Values

VALUE_SERIES_END

public static final int VALUE_SERIES_END
See Also:
Constant Field Values

VALUE_MATRIX

public static final int VALUE_MATRIX
See Also:
Constant Field Values

VALUE_MATRIX_START

public static final int VALUE_MATRIX_START
See Also:
Constant Field Values

VALUE_MATRIX_END

public static final int VALUE_MATRIX_END
See Also:
Constant Field Values

VALUE_MATRIX_ROW_START

public static final int VALUE_MATRIX_ROW_START
See Also:
Constant Field Values

BLOCK_TYPE_NAMES

public static final java.lang.String[] BLOCK_TYPE_NAMES

ATTRIBUTE_BLOCK_TYPE

public static final Ontology ATTRIBUTE_BLOCK_TYPE
An ontology for block types (single, time series...)

Method Detail

isA

public boolean isA(int child,
                   int parent)
Returns true if child is a parent.


mapName

public int mapName(java.lang.String name)
Maps the name of a class to its index or -1 if unknown.


mapIndex

public java.lang.String mapIndex(int index)
Maps an index to its name.


getNames

public java.lang.String[] getNames()

getParent

public int getParent(int child)


Copyright © 2001-2009 by Rapid-I