com.rapidminer.operator.condition
Class LastInnerOperatorCondition

java.lang.Object
  extended by com.rapidminer.operator.condition.LastInnerOperatorCondition
All Implemented Interfaces:
InnerOperatorCondition

public class LastInnerOperatorCondition
extends java.lang.Object
implements InnerOperatorCondition

This condition can be used to define a output condition for the last operator in a chain (e.g. the last operator of a chain must deliver a performance vector). This also means that all operators before can handle their predecessors output. It is therefore not necessary to add a SimpleChainInnerOperatorCondition additionally to this condition to the list of conditions.

Author:
Ingo Mierswa ingomierswa Exp $

Constructor Summary
LastInnerOperatorCondition(java.lang.Class[] mustDeliver)
          Creates an inner operator condition.
LastInnerOperatorCondition(java.lang.Class[] willGet, java.lang.Class[] mustDeliver)
          Creates an inner operator condition.
LastInnerOperatorCondition(java.lang.Class[] willGet, java.lang.Class[] mustDeliver, boolean allowEmptyChains)
          Creates an inner operator condition.
 
Method Summary
 java.lang.Class[] checkIO(OperatorChain chain, java.lang.Class[] input)
          Checks if the condition is fulfilled in the given operator chain.
 java.lang.String toHTML()
          Returns a HTML string representation of this condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastInnerOperatorCondition

public LastInnerOperatorCondition(java.lang.Class[] mustDeliver)
Creates an inner operator condition. The first operator in the chain gets the input of the operator chain. Each operator must be able to handle the output of the predecessor. The last operator must provide all classes in the given mustDeliver class array. Empty chains are not allowed.


LastInnerOperatorCondition

public LastInnerOperatorCondition(java.lang.Class[] willGet,
                                  java.lang.Class[] mustDeliver)
Creates an inner operator condition. The first operator in the chain gets the input of the operator chain and additionally the given classes willGet. Each operator must be able to handle the output of the predecessor. The last operator must provide all classes in the given mustDeliver class array. Empty chains are not allowed.


LastInnerOperatorCondition

public LastInnerOperatorCondition(java.lang.Class[] willGet,
                                  java.lang.Class[] mustDeliver,
                                  boolean allowEmptyChains)
Creates an inner operator condition. The first operator in the chain gets the input of the operator chain and additionally the given classes willGet. Each operator must be able to handle the output of the predecessor. The last operator must provide all classes in the given mustDeliver class array.

Method Detail

checkIO

public java.lang.Class[] checkIO(OperatorChain chain,
                                 java.lang.Class[] input)
                          throws IllegalInputException,
                                 WrongNumberOfInnerOperatorsException
Description copied from interface: InnerOperatorCondition
Checks if the condition is fulfilled in the given operator chain. Throws an exception if it is not fullfilled.

Specified by:
checkIO in interface InnerOperatorCondition
Throws:
IllegalInputException
WrongNumberOfInnerOperatorsException

toHTML

public java.lang.String toHTML()
Description copied from interface: InnerOperatorCondition
Returns a HTML string representation of this condition.

Specified by:
toHTML in interface InnerOperatorCondition


Copyright © 2001-2009 by Rapid-I