Package net.sourceforge.align.ui.console.command.exception

Examples of net.sourceforge.align.ui.console.command.exception.MissingParameterException


 
  private Calculator createCalculator(CommandLine commandLine,
      List<Alignment> alignmentList) {
    String calculatorString = commandLine.getOptionValue('a');
    if (calculatorString == null) {
      throw new MissingParameterException("calculator");
    }
    List<String> calculatorStringList =
      Arrays.asList(calculatorString.split(","));
    return createCalculator(commandLine, alignmentList, calculatorStringList);
  }
View Full Code Here


 
 
  private Calculator createNormalCalculator(CommandLine commandLine) {
    Counter counter = createCounter(commandLine);
    if (counter == null) {
      throw new MissingParameterException("counter");
    }
    Calculator calculator = new NormalDistributionCalculator(counter);
    return calculator;
  }
View Full Code Here

  private Calculator createPoissonCalculator(CommandLine commandLine,
      List<Alignment> alignmentList) {
    Counter counter = createCounter(commandLine);
    if (counter == null) {
      throw new MissingParameterException("counter");
    }
    String lengthCorpus = commandLine.getOptionValue('l');
    List<Alignment> lengthAlignmentList;
    if (lengthCorpus != null) {
      lengthAlignmentList = loadAlignmentList(lengthCorpus);
View Full Code Here

  private Calculator createOracleCalculator(CommandLine commandLine,
      Calculator calculator) {
    Calculator resultCalculator;
    String oracleCorpus = commandLine.getOptionValue("oracle-corpus");
    if (oracleCorpus == null) {
      throw new MissingParameterException("oracle-corpus");
    }
    List<Alignment> oracleAlignmentList = loadAlignmentList(oracleCorpus);
    resultCalculator = new MinimumCalculator(new OracleCalculator(oracleAlignmentList),
        calculator, OracleCalculator.DEFAULT_SUCCESS_SCORE);
    return resultCalculator;
View Full Code Here

TOP

Related Classes of net.sourceforge.align.ui.console.command.exception.MissingParameterException

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.