Examples of save()


Examples of edu.brown.markov.containers.MarkovGraphsContainer.save()

        } // FOR
   
        // Serialize them out to a file. This will also make a nice little index in the file
        tempFile = FileUtil.getTempFile("markovs", false);
        assertNotNull(tempFile);
        markovs.save(tempFile);
        System.err.println("MARKOV FILE: " + tempFile);
   
        // Now read it back in make sure everything is there
        MarkovGraphsContainer clone = new MarkovGraphsContainer();
        clone.load(tempFile, catalog_db);
View Full Code Here

Examples of edu.brown.statistics.ObjectHistogram.save()

        buffer.append("Warehouse Histograms:\n");
        for (Integer w_id : histograms.keySet()) {
            ObjectHistogram hist = histograms.get(w_id);
            buffer.append("Partition: " + w_id + " [" + distributions.get(w_id).getMin() + "]\n");
            buffer.append(hist).append("\n");
            hist.save(new File("histograms/" + w_id + ".hist"));
        } // FOR
        LOG.info(buffer.toString());
       
        return;
    }
View Full Code Here

Examples of edu.brown.statistics.WorkloadStatistics.save()

           
            if (m_tableStatsDir.exists() == false) m_tableStatsDir.mkdirs();
            File path = new File(m_tableStatsDir.getAbsolutePath() + "/" + this.getProjectName() + ".stats");
            LOG.info("Writing table statistics data to '" + path + "'");
            try {
                stats.save(path);
            } catch (IOException ex) {
                throw new RuntimeException("Failed to save table statistics to '" + path + "'", ex);
            }
        }
       
View Full Code Here

Examples of edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.TrainerAcousticModel.save()

        } else {
            for (AcousticModel model : acousticModels) {
                if (model instanceof TrainerAcousticModel) {
                    TrainerAcousticModel tmodel =
                            (TrainerAcousticModel) model;
                    tmodel.save(model.getName());
                }
            }
        }
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.mylead.MyLead.save()

       
        UUID uuid = UUID.randomUUID();
        workflow.setName(uuid.toString());

        // First deploy
        String resourceID = myLead.save(workflow, false);
        // Load
        URI templateID2 = myLead.load(resourceID);
        assertEquals(workflow.getUniqueWorkflowName(), templateID2);

        // Redeploy
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntology.save()

      time2 = System.currentTimeMillis();
      importer.copyClasses(scls,ont.getRoot());
      importer.copyValues(scls,ont.getRoot());
      System.out.println("total import time "+((System.currentTimeMillis()-time)/1000)+" s");
      System.out.println("end time "+new Date());
      ont.save();
      //,new File(System.getProperty("user.home")
      showOntology(ont);
     
    }else
      System.exit(0);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.impl.NobleCoderTerminology.save()

      }
      terminology.load(name);
      ConceptImporter.getInstance().addPropertyChangeListener(this);
      ConceptImporter.getInstance().loadOBO(terminology,new File(obo));
      ConceptImporter.getInstance().removePropertyChangeListener(this);
      terminology.save();
    }else if(bioportal != null){
      log("Loading BioPortal terminology from "+bioportal+"...");
      BioPortalRepository r = new BioPortalRepository();
      IOntology ont = r.getOntology(URI.create(bioportal));
      if(ont != null){
View Full Code Here

Examples of edu.pitt.ontology.IOntology.save()

          semanticTypeFilter.add(SemanticType.getSemanticType(""+semTypeList.getModel().getElementAt(i)));
        }
        try {
          IOntology ont = POntology.createOntology(URI.create(defaultURI+ontologyFile.getName()),ontologyFile.getParentFile());
          export(term,rootFilter,semanticTypeFilter,ont);
          ont.save();
        } catch (Exception e) {
          console.append("Error: "+e.getMessage()+"\n");
          JOptionPane.showMessageDialog(main,"Problems encounted during export","Error",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
View Full Code Here

Examples of edu.pitt.terminology.client.IndexFinderTerminology.save()

      }
      terminology.load(name);
      ConceptImporter.getInstance().addPropertyChangeListener(this);
      ConceptImporter.getInstance().loadOBO(terminology,new File(obo));
      ConceptImporter.getInstance().removePropertyChangeListener(this);
      terminology.save();
    }else if(bioportal != null){
      log("Loading BioPortal terminology from "+bioportal+"...");
      BioPortalRepository r = new BioPortalRepository();
      IOntology ont = r.getOntology(URI.create(bioportal));
      if(ont != null){
View Full Code Here

Examples of edu.stanford.bmir.protege.web.server.crud.persistence.ProjectEntityCrudKitSettingsRepository.save()

    private EntityCrudKitSettings<?> getCurrentSettings() {
        ProjectEntityCrudKitSettingsRepository repository = ProjectEntityCrudKitSettingsRepositoryManager.getRepository();
        ProjectEntityCrudKitSettings projectSettings = repository.findOne(projectId);
        if (projectSettings == null) {
            projectSettings = new ProjectEntityCrudKitSettings(projectId, getDefaultSettings());
            repository.save(projectSettings);
        }
        return projectSettings.getSettings();
    }

    private boolean isCachedHandlerStale(EntityCrudKitSettings<?> settings) {
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.