org.knime.base.node.mine.decisiontree2
Enum PMMLSetOperator

java.lang.Object
  extended by java.lang.Enum<PMMLSetOperator>
      extended by org.knime.base.node.mine.decisiontree2.PMMLSetOperator
All Implemented Interfaces:
Serializable, Comparable<PMMLSetOperator>

public enum PMMLSetOperator
extends Enum<PMMLSetOperator>

Contains the set operators that are specified in PMML for SimpleSetPredicates.

Author:
Dominik Morent, KNIME.com, Zurich, Switzerland

Enum Constant Summary
IS_IN
          is missing operator.
IS_NOT_IN
          is not missing operator.
 
Method Summary
<T> boolean
evaluate(T a, Set<T> set)
          Evaluates the operator on the passed value.
static PMMLSetOperator get(String represent)
          Returns the corresponding operator for the passed representation.
 String toString()
          
static PMMLSetOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PMMLSetOperator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IS_IN

public static final PMMLSetOperator IS_IN
is missing operator.


IS_NOT_IN

public static final PMMLSetOperator IS_NOT_IN
is not missing operator.

Method Detail

values

public static PMMLSetOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PMMLSetOperator c : PMMLSetOperator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PMMLSetOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()

Overrides:
toString in class Enum<PMMLSetOperator>

get

public static PMMLSetOperator get(String represent)
                           throws InstantiationException
Returns the corresponding operator for the passed representation.

Parameters:
represent - the representation to find the operator for
Returns:
the operator
Throws:
InstantiationException - - if no such PMML operator exists

evaluate

public <T> boolean evaluate(T a,
                            Set<T> set)
Evaluates the operator on the passed value.

Type Parameters:
T - The type of the parameters to be evaluated.
Parameters:
a - the value to check
set - the set to compare against
Returns:
the result of the operation


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.