Package org.woped.metrics.exceptions

Examples of org.woped.metrics.exceptions.FormulaVariableNotFoundException


                         if(MetricsCalculator.isVariableValid(IdentToken.getText())== false){
                           //Check if there is a formula describtion with that name
                           //algorithmNameToID return the token-name if the id was not found
                          if(MetricsUIRequestHandler.algorithmNameToID(IdentToken.getText()).equals(IdentToken.getText())){
                            ErrorList.getInstance().
                              addException(new FormulaVariableNotFoundException(IdentToken.getText(), IdentToken.getCharPositionInLine()));                       
                          }else{
                            ErrorList.getInstance().
                              addException(new AlgorithmIDTranslateException(IdentToken.getText(), MetricsUIRequestHandler.algorithmNameToID(IdentToken.getText())))
                          }
                         
View Full Code Here


            //If the Syntax is checked, there is no recursion needed
           //Due to the fact that there is no data available, the Variable can't be calculated
              if (syntaxCheck){
            if(MetricsCalculator.isVariableValid(IdentToken.getText())== false){
             ErrorList.getInstance().
             addException(new FormulaVariableNotFoundException(IdentToken.getText(), IdentToken.getCharPositionInLine()));
            }
            result = 1;
           }else{
            result = metricsCalculator.calculateVariable(IdentToken.getText(), stack,true);
           }
View Full Code Here

      System.err.println("Invalid method name: "+token+" ("+metricsConfig.getVariableMethod(token)+")");
      throw new CalculateFormulaException();
    }
     
    //Variable is not found --> Throw exception
    throw new FormulaVariableNotFoundException(token);
      
  }
View Full Code Here

TOP

Related Classes of org.woped.metrics.exceptions.FormulaVariableNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.