当前位置: 首页>>代码示例>>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;未经允许,请勿转载。