Examples of Algorithm


Examples of org.cishell.framework.algorithm.Algorithm

     * @param destNdx Destination of table item
     */
    private void moveTableItems(int ndxToMove, int destNdx) {
    TableItem item = table.getItem(ndxToMove);
    if (item != null) {
      Algorithm algorithm = (Algorithm) tableItemToAlgorithmMap
          .get(item);
      tableItemToAlgorithmMap.remove(item);

      SchedulerTableItem schedulerTableItem = (SchedulerTableItem) algorithmToGuiItemMap
          .get(algorithm);
View Full Code Here

Examples of org.cishell.framework.algorithm.Algorithm

    private class TableListener extends SelectionAdapter {
    public void widgetSelected(SelectionEvent e) {
      TableItem[] items = table.getSelection();
      for (int i = 0; i < items.length; ++i) {
        TableItem item = items[i];
        Algorithm algorithm = (Algorithm) tableItemToAlgorithmMap
            .get(item);
        if (algorithm != null) {
          if (algorithmIsProgressTrackable(algorithm)) {
            removeButton.setEnabled(true);
          } else {
View Full Code Here

Examples of org.cishell.framework.algorithm.Algorithm

     */
  private class PauseListener implements Listener {
    public void handleEvent(Event event) {
      TableItem item   = table.getItem(table.getSelectionIndex());
      if (item != null) {
        Algorithm algorithm = (Algorithm)tableItemToAlgorithmMap.get(item);
        if (algorithm instanceof ProgressTrackable) {
          ProgressMonitor monitor = ((ProgressTrackable)algorithm).getProgressMonitor();
          if (monitor != null) {
            monitor.setPaused(true);
            setEnabledMenuItems(algorithm);
View Full Code Here

Examples of org.cishell.framework.algorithm.Algorithm

   */
  private class CancelListener implements Listener {
    public void handleEvent(Event event) {
      TableItem item   = table.getItem(table.getSelectionIndex());
      if (item != null) {
        Algorithm algorithm = (Algorithm) tableItemToAlgorithmMap
            .get(item);
        if (algorithm instanceof ProgressTrackable) {
          ProgressMonitor monitor = ((ProgressTrackable) algorithm)
              .getProgressMonitor();
          if (monitor != null) {
View Full Code Here

Examples of org.cishell.framework.algorithm.Algorithm

   */
  private class StartListener implements Listener {   
    public void handleEvent(Event event) {
      TableItem item   = table.getItem(table.getSelectionIndex());
      if (item != null) {
        Algorithm algorithm = (Algorithm) tableItemToAlgorithmMap
            .get(item);
        if (algorithm instanceof ProgressTrackable) {
          ProgressMonitor monitor = ((ProgressTrackable) algorithm)
              .getProgressMonitor();
          if (monitor != null) {
View Full Code Here

Examples of org.cishell.framework.algorithm.Algorithm

        try {
          ServiceReference uniqueServiceReference = this.serviceReference;
//            new ServiceReferenceDelegate(this.serviceReference);
            printAlgorithmInformation(uniqueServiceReference, this.ciShellContext);

            Algorithm algorithm = new AlgorithmWrapper(
              uniqueServiceReference,
              this.bundleContext,
              this.ciShellContext,
              this.originalData,
              this.data,
View Full Code Here

Examples of org.cytoscape.ClusterViz.internal.algorithm.Algorithm

        }*/
        //notice, here we set the selected nodes

        currentParamsCopy.setSelectedNodes(selectedNodesRGI);

        Algorithm alg1 = null;
        boolean newNet=isDirty(network);//judge new network
       
        

       

        ParameterSet savedParamsCopy;
        if (this.clusterUtil.containsNetworkAlgorithm(network.getSUID().longValue())) {
//          alg1 = this.clusterUtil.getNetworkAlgorithm(network.getSUID().longValue());

         
         
          savedParamsCopy = this.clusterUtil.getCurrentParameters().getParamsCopy(network.getSUID());
         
          analyze=checkParams(currentParamsCopy, newNet);
         
         
        } else {
          //clusterUtil.getNetworkAlgorithm(network.getSUID().longValue())
         
         
         
          savedParamsCopy = this.clusterUtil.getCurrentParameters().getParamsCopy(null);
        
                 
          this.analyze = 0;
        }
       

       
       

       
        if (analyze == INTERRUPTED || analyze == EXISTS)
          JOptionPane.showMessageDialog(AnalyzeAction.this.swingApplication.getJFrame(),
                interruptedMessage, "Interrupted", JOptionPane.WARNING_MESSAGE);
        else
        final int resultId = this.clusterUtil.getCurrentResultId();

        if ((this.analyze == 0) || (isDirty(network)) || (!currentParamsCopy.getAlgorithm().equals(savedParamsCopy.getAlgorithm())) ||
          (currentParamsCopy.isIncludeLoops() != savedParamsCopy.isIncludeLoops()) ||
          (currentParamsCopy.getDegreeCutoff() != savedParamsCopy.getDegreeCutoff())) {
          this.analyze = 1;
//         logger.debug("Analysis: score network, find clusters");
          this.clusterUtil.getCurrentParameters().setParams(currentParamsCopy, resultId, network.getSUID());
        } else if (!checkEqual(savedParamsCopy, currentParamsCopy)) {
          this.analyze = 2;
  //        logger.debug("Analysis: find clusters");
          this.clusterUtil.getCurrentParameters().setParams(currentParamsCopy, resultId, network.getSUID());
        } else {
          this.analyze = 3;
          interruptedMessage = "The parameters you specified have not changed.";
          this.clusterUtil.getCurrentParameters().setParams(currentParamsCopy, resultId, network.getSUID());
        }

        if(currentParamsCopy.getAlgorithm().equals(ParameterSet.MCODE ))
            alg1 = new MCODE(network.getSUID(), this.clusterUtil);
        if(currentParamsCopy.getAlgorithm().equals(ParameterSet.EAGLE ))
            alg1 = new EAGLE(network.getSUID(), this.clusterUtil);
        if(currentParamsCopy.getAlgorithm().equals(ParameterSet.FAGEC ))
            alg1 = new FAGEC(network.getSUID(), this.clusterUtil);
        this.clusterUtil.addNetworkAlgorithm(network.getSUID().longValue(), alg1);
       
/*      
        //if (!networkManager.containsKey(network.getIdentifier())){
          newNet=true;
      alg = curParams.getAlg();
            //alg = new Algorithm(null);
            networkManager.put(network.getSUID(), alg);
        //}
        //else alg = (Algorithm) networkManager.get(network.getIdentifier());
        //check the validation the input parameters
        analyze=checkParams(curParams, newNet);
       
       
        resultId = this.clusterUtil.getCurrentResultId();
       
        if (analyze == INTERRUPTED || analyze == EXISTS)
            JOptionPane.showMessageDialog(nullCytoscape.getDesktop(),
                interruptedMessage, "Interrupted", JOptionPane.WARNING_MESSAGE);
        else{           
            //update the parameter set with this result title
          clusterUtil.getCurrentParameters().setParams(curParams,  (resultCounter + 1),
                network.getSUID());*/
         

        if ((currentParamsCopy.getScope().equals(ParameterSet.SELECTION)) &&
          (currentParamsCopy.getSelectedNodes().length < 1)) {
          this.analyze = 3;
          interruptedMessage = "You must select ONE OR MORE NODES\nfor this scope.";
        }

        if (this.analyze == 3) {
          JOptionPane.showMessageDialog(this.swingApplication.getJFrame(),
            interruptedMessage,
            "Analysis Interrupted",
            2);
        }
        else {
         
            
         final  Algorithm alg2=alg1;
          AnalysisCompletedListener listener = new AnalysisCompletedListener()
            {
              public void handleEvent(AnalysisCompletedEvent e)
              {
                ResultPanel resultsPanel = null;
View Full Code Here

Examples of org.jboss.resteasy.jose.jwe.Algorithm

         throw new RuntimeException("The authentication tag must not be null");
      }


      Algorithm alg = readOnlyJWEHeader.getAlgorithm();

      if (!alg.equals(Algorithm.dir))
      {

         throw new RuntimeException("Unsupported algorithm, must be \"dir\"");
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.manifest.Algorithm

        _currentEncryptionData.setChecksumType(atts.getValue("manifest:checksum-type"));
        _currentEncryptionData.setChecksum(atts.getValue("manifest:checksum"));
        _currentFileEntry.setEncryptionData(_currentEncryptionData);
      }
    } else if (localName.equals("algorithm")) {
      Algorithm algorithm = new Algorithm();
      algorithm.setName(atts.getValue("manifest:algorithm-name"));
      algorithm.setInitializationVector(atts.getValue("manifest:initialization-vector"));
      if (_currentEncryptionData != null) {
        _currentEncryptionData.setAlgorithm(algorithm);
      }
    } else if (localName.equals("key-derivation")) {
      KeyDerivation keyDerivation = new KeyDerivation();
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.manifest.Algorithm

            }
            EncryptionData enc = fileEntry.getEncryptionData();
            if (enc != null) {
              buf.append(">\n");
              buf.append("  <manifest:encryption-data>\n");
              Algorithm alg = enc.getAlgorithm();
              if (alg != null) {
                buf.append("   <manifest:algorithm");
                s = alg.getName();
                if (s != null) {
                  buf.append(" manifest:algorithm-name=\"");
                  buf.append(encodeXMLAttributes(s));
                  buf.append("\"");
                }
                s = alg.getInitializationVector();
                if (s != null) {
                  buf.append(" manifest:initialization-vector=\"");
                  buf.append(encodeXMLAttributes(s));
                  buf.append("\"");
                }
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.