Package org.cishell.framework.algorithm

Examples of org.cishell.framework.algorithm.Algorithm.execute()


      ProgressTrackable pt = (ProgressTrackable) algo;
      pt.setProgressMonitor(new AlgorithmProgressMonitor());
    }
    try {

      Data[] data = algo.execute();
      return data;
    } catch (AlgorithmExecutionException e) {
      String logMessage = String.format(
          "The algorithm \"%s\" failed to execute", name,
          e.getMessage());
View Full Code Here


      if ((progressMonitor != null) && (algorithm instanceof ProgressTrackable)) {
        ProgressTrackable progressTrackable = (ProgressTrackable)algorithm;
        progressTrackable.setProgressMonitor(progressMonitor);
      }

      Data[] result = algorithm.execute();

      return result;
    }
 
  /*
 
View Full Code Here

    if ((progressMonitor != null) && (algorithm instanceof ProgressTrackable)) {
      ProgressTrackable progressTrackable = (ProgressTrackable)algorithm;
      progressTrackable.setProgressMonitor(progressMonitor);
    }

    Data[] validatedData = algorithm.execute();

    if (validatedData != null) {
      logger.log(LogService.LOG_INFO, "Loaded: " + file.getPath());
    }
View Full Code Here

      throws AlgorithmExecutionException {

    AlgorithmFactory converterFactory =
      (AlgorithmFactory) this.bundleContext.getService(this.serviceReference);
    Algorithm converter = converterFactory.createAlgorithm(input, parameters, ciShellContext);
    Data[] output = converter.execute();
   
    return output;
  }
 
View Full Code Here

        Data data[] = AbstractDataManagerView.this.manager.getSelectedData();
        Algorithm algorithm = AbstractDataManagerView.this.saveFactory.createAlgorithm(
          data, new Hashtable<String, Object>(), Activator.getCIShellContext());

        try {
          algorithm.execute();
        } catch (AlgorithmExecutionException e)  {
          if (AbstractDataManagerView.this.logger != null) {
            AbstractDataManagerView.this.logger.log(
              LogService.LOG_ERROR, e.getMessage(), e);
            e.printStackTrace();
View Full Code Here

        Data data[] = AbstractDataManagerView.this.manager.getSelectedData();
        Algorithm algorithm = AbstractDataManagerView.this.viewFactory.createAlgorithm(
          data, new Hashtable<String, Object>(), Activator.getCIShellContext());

        try {
          algorithm.execute();
        } catch (AlgorithmExecutionException e)  {
          if (AbstractDataManagerView.this.logger != null) {
            AbstractDataManagerView.this.logger.log(
              LogService.LOG_ERROR, e.getMessage(), e);
          } else {
View Full Code Here

        AlgorithmFactory factory = getAlgorithmFactory();
        Algorithm algorithm = factory.createAlgorithm(new Data[]{inData}, new Hashtable<String, Object>(), ciContext);

        Data[] resultDataArray;
        try {
          resultDataArray = algorithm.execute();
    } catch (AlgorithmExecutionException e) {
      e.printStackTrace();
      throw new ConversionException(e.getMessage(), e);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

                if (factory != null) {
                    Algorithm algorithm = factory.createAlgorithm(
                      convertedData, this.parameters, this.ciShellContext);
                   
                    try {
                      convertedData = algorithm.execute();
                    } catch(AlgorithmExecutionException e) {
                      boolean isLastStep = (ii == serviceReferences.size() - 1);
                      if (isLastStep && isHandler(serviceReferences.get(ii))) {
                        /* If the last step of the converter chain is a
                         * handler and it is the first (and so only) step
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.