當前位置: 首頁>>代碼示例>>Java>>正文


Java WrongNumberOfInnerOperatorsException類代碼示例

本文整理匯總了Java中com.rapidminer.operator.WrongNumberOfInnerOperatorsException的典型用法代碼示例。如果您正苦於以下問題:Java WrongNumberOfInnerOperatorsException類的具體用法?Java WrongNumberOfInnerOperatorsException怎麽用?Java WrongNumberOfInnerOperatorsException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


WrongNumberOfInnerOperatorsException類屬於com.rapidminer.operator包,在下文中一共展示了WrongNumberOfInnerOperatorsException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	Class[] output = input;
	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}
	if (this.deliverInput) {
		return input;
	} else {
		return output;
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:17,代碼來源:SimpleChainInnerOperatorCondition.java

示例2: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	if (chain.getNumberOfOperators() == 0) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}
	Class[] innerOutput = input;
	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		innerOutput = operator.checkIO(willGet);
		for (int j = 0; j < mustDeliver.length; j++) {
			if (!DefaultIODescription.containsClass(mustDeliver[j], innerOutput)) {
				throw new IllegalInputException(chain, operator, mustDeliver[j]);
			}
		}
	}
	return innerOutput;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:20,代碼來源:AllInnerOperatorCondition.java

示例3: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	if ((!allowEmptyChains) && (chain.getNumberOfOperators() == 0)) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}

	return output;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:25,代碼來源:FirstInnerOperatorCondition.java

示例4: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	if ((this.index < 0) || (this.index >= chain.getNumberOfOperators())) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), index);
	}
	Operator operator = chain.getOperator(this.index);

	if (this.index == 0) {
		for (Class c : willGet) {
			if (!DefaultIODescription.containsClass(c, input)) {
				throw new IllegalInputException(operator, c);
			}
		}
	}

	Class[] output = operator.checkIO(willGet);
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output)) {
			throw new IllegalInputException(chain, operator, mustDeliver[i]);
		}
	}
	return mustDeliver;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:26,代碼來源:SpecificInnerOperatorCondition.java

示例5: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	Class<?>[] output = input;
	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}
	if (this.deliverInput) {
		return input;
	} else {
		return output;
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:17,代碼來源:SimpleChainInnerOperatorCondition.java

示例6: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if (chain.getNumberOfOperators() == 0) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}
	Class<?>[] innerOutput = input;
	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		innerOutput = operator.checkIO(willGet);
		for (int j = 0; j < mustDeliver.length; j++) {
			if (!DefaultIODescription.containsClass(mustDeliver[j], innerOutput)) {
				throw new IllegalInputException(chain, operator, mustDeliver[j]);
			}
		}
	}
	return innerOutput;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:20,代碼來源:AllInnerOperatorCondition.java

示例7: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if (!allowEmptyChains && chain.getNumberOfOperators() == 0) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class<?>[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}

	return output;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:25,代碼來源:FirstInnerOperatorCondition.java

示例8: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if (this.index < 0 || this.index >= chain.getNumberOfOperators()) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), index);
	}
	Operator operator = chain.getOperator(this.index);

	if (this.index == 0) {
		for (Class<?> c : willGet) {
			if (!DefaultIODescription.containsClass(c, input)) {
				throw new IllegalInputException(operator, c);
			}
		}
	}

	Class<?>[] output = operator.checkIO(willGet);
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output)) {
			throw new IllegalInputException(chain, operator, mustDeliver[i]);
		}
	}
	return mustDeliver;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:26,代碼來源:SpecificInnerOperatorCondition.java

示例9: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
/** */
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if ((!allowEmptyChains) && (chain.getNumberOfOperators() == 0)) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(), chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled())
			output = operator.checkIO(output);
	}
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output))
			throw new IllegalInputException(chain, chain.getOperator(chain.getNumberOfOperators() - 1), mustDeliver[i]);
	}

	return output;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:26,代碼來源:LastInnerOperatorCondition.java

示例10: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if ((!allowEmptyChains) && (chain.getNumberOfOperators() == 0)) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(), chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled())
			output = operator.checkIO(output);
	}

	return output;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:21,代碼來源:FirstInnerOperatorCondition.java

示例11: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if ((this.index < 0) || (this.index >= chain.getNumberOfOperators())) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(), chain.getMaxNumberOfInnerOperators(), index);
	}
	Operator operator = chain.getOperator(this.index);
	
	if (this.index == 0) {
		for (Class c : willGet) {
			if (!DefaultIODescription.containsClass(c, input))
				throw new IllegalInputException(operator, c);
		}
	}
	
	Class[] output = operator.checkIO(willGet);
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output))
			throw new IllegalInputException(chain, operator, mustDeliver[i]);
	}
	return mustDeliver;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:21,代碼來源:SpecificInnerOperatorCondition.java

示例12: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
/** */
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	if ((!allowEmptyChains) && (chain.getNumberOfOperators() == 0)) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output)) {
			throw new IllegalInputException(chain, chain.getOperator(chain.getNumberOfOperators() - 1), mustDeliver[i]);
		}
	}

	return output;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:31,代碼來源:LastInnerOperatorCondition.java

示例13: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class[] checkIO(OperatorChain chain, Class[] input) throws IllegalInputException,
		WrongNumberOfInnerOperatorsException {
	Class[] innerOutput = input;
	Iterator<InnerOperatorCondition> i = conditions.iterator();
	while (i.hasNext()) {
		InnerOperatorCondition condition = i.next();
		innerOutput = condition.checkIO(chain, input);
	}
	return innerOutput;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:12,代碼來源:CombinedInnerOperatorCondition.java

示例14: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
/** */
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	if (!allowEmptyChains && chain.getNumberOfOperators() == 0) {
		throw new WrongNumberOfInnerOperatorsException(chain, chain.getMinNumberOfInnerOperators(),
				chain.getMaxNumberOfInnerOperators(), 0);
	}

	Class<?>[] output = input;
	if (willGet != null) {
		output = new Class[input.length + willGet.length];
		System.arraycopy(input, 0, output, 0, input.length);
		System.arraycopy(willGet, 0, output, input.length, willGet.length);
	}

	for (int i = 0; i < chain.getNumberOfOperators(); i++) {
		Operator operator = chain.getOperator(i);
		if (operator.isEnabled()) {
			output = operator.checkIO(output);
		}
	}
	for (int i = 0; i < mustDeliver.length; i++) {
		if (!DefaultIODescription.containsClass(mustDeliver[i], output)) {
			throw new IllegalInputException(chain, chain.getOperator(chain.getNumberOfOperators() - 1), mustDeliver[i]);
		}
	}

	return output;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:31,代碼來源:LastInnerOperatorCondition.java

示例15: checkIO

import com.rapidminer.operator.WrongNumberOfInnerOperatorsException; //導入依賴的package包/類
@Override
public Class<?>[] checkIO(OperatorChain chain, Class<?>[] input)
		throws IllegalInputException, WrongNumberOfInnerOperatorsException {
	Class<?>[] innerOutput = input;
	Iterator<InnerOperatorCondition> i = conditions.iterator();
	while (i.hasNext()) {
		InnerOperatorCondition condition = i.next();
		innerOutput = condition.checkIO(chain, input);
	}
	return innerOutput;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:12,代碼來源:CombinedInnerOperatorCondition.java


注:本文中的com.rapidminer.operator.WrongNumberOfInnerOperatorsException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。