本文整理汇总了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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}