本文整理匯總了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;
}