Package eu.planets_project.tb.impl.exceptions

Examples of eu.planets_project.tb.impl.exceptions.InvalidInputException


  public void setSourceValue(String value)throws InvalidInputException{
    if(checkValueValid(value)){
      this.sSourceValue = value;
    }
    else{
      throw new InvalidInputException("Invalid value "+value);
    }
  }
View Full Code Here


  public void setTargetValue(String value)throws InvalidInputException{
    if(checkValueValid(value)){
      this.sTargetValue = value;
    }
    else{
      throw new InvalidInputException("Invalid value "+value);
    }
  }
View Full Code Here

  public void setWeight(int weight) throws InvalidInputException{
    if(BenchmarkGoal.WEIGHT_MINIMUM<=weight&&weight<=BenchmarkGoal.WEIGHT_MAXIMUM){
      this.iWeight = weight;
    }
    else{
      throw new InvalidInputException("Invalid weight "+weight);
    }
  }
View Full Code Here

    List<String> list = new ExperimentEvaluationImpl().getAllAcceptedEvaluationValues();
    if((value!=null)&&(list.contains(value))){
      this.sEvaluationValue = value;
    }
    else{
      throw new InvalidInputException("EvaluationValue not in the range of accepted values");
    }
  }
View Full Code Here

      }
     
      this.experimentBenchmarkGoals.put(goal.getID(), goal);
    }
    else{
      throw new InvalidInputException("evaluateExperimentBenchmarkGoal failed: InputBenchmarkGoalID "+addedBenchmarkGoalID+" not contained.");
    }
   
  }
View Full Code Here

     
      //now put back the goal
      hmFileGoals.put(goal.getID(), goal);
    }
    else{
      throw new InvalidInputException("evaluateFileBenchmarkGoal failed. Unsupported BenchmarkGoal or InvalidInput File");
    }
  }
View Full Code Here

      if(bMarker){
        this.fileBenchmarkGoals.put(inputFile, hmFileGoals);
      }
    }
    else{
      throw new InvalidInputException("evaluateFileBenchmarkGoal failed. Unsupported BenchmarkGoal or InvalidInput File");
    }
  }
View Full Code Here

    if(manager.getExperimentTypeIDs().contains(sExperimentTypeID)){
      this.sExperimentApproach = sExperimentTypeID;
    }
    else{
            log.error("Could not set Experiment Approach to: " + sExperimentTypeID );
      throw new InvalidInputException("Unsupported ExperimentTypeID "+sExperimentTypeID);
    }
  }
View Full Code Here

    if (tokenizer.countTokens()==3){
      this.vExpObjectTypes = new Vector<String>();
      this.vExpObjectTypes.add(mimeType);
    }
    else{
      throw new InvalidInputException("ExperimentedObject MIME Type "+mimeType+" is not supported");
    }
  }
View Full Code Here

    if (tokenizer.countTokens()==3){
      if(!this.vExpObjectTypes.contains(mimeType))
        this.vExpObjectTypes.add(mimeType)
    }
    else{
      throw new InvalidInputException("ExperimentedObject MIME Type "+mimeType+" is not supported");
    }
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.exceptions.InvalidInputException

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.