com.rapidminer.operator.condition
Class FirstInnerOperatorCondition

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

public class FirstInnerOperatorCondition
extends java.lang.Object
implements InnerOperatorCondition

This condition can be used to define a output condition for the an inner operator in a chain where the first inner operator must be able to handle the specified input and all inner operators must be able to 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

Constructor Summary
FirstInnerOperatorCondition(java.lang.Class[] willGet)
          Creates an inner operator condition.
FirstInnerOperatorCondition(java.lang.Class[] willGet, 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

FirstInnerOperatorCondition

public FirstInnerOperatorCondition(java.lang.Class[] willGet)
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.


FirstInnerOperatorCondition

public FirstInnerOperatorCondition(java.lang.Class[] willGet,
                                   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