Examples of save()


Examples of simpleserver.config.LegacyChestList.save()

        locations.put(coord, new Chest(chest.owner(), coord));
      } else {
        locations.put(coord, new Chest(chest.owner(), coord, chest.name()));
      }
    }
    old.save();
  }

  void save() {
    NBTList<NBTCompound> node = new NBTList<NBTCompound>(CHESTS, NBT.COMPOUND);
    for (Chest chest : locations.values()) {
View Full Code Here

Examples of simpleserver.config.LegacyStats.save()

      stats.put(new NBTInt(StatField.PLAY_TIME.toString(), oldStats.minutes));
      stats.put(new NBTInt(StatField.BLOCKS_DESTROYED.toString(), oldStats.blocksDestroyed));
      stats.put(new NBTInt(StatField.BLOCKS_PLACED.toString(), oldStats.blocksPlaced));
      tag.put(stats);
    }
    old.save();
  }
}
View Full Code Here

Examples of simpleserver.nbt.PlayerFile.save()

  void connect() throws UnknownHostException, IOException {
    PlayerFile dat = new PlayerFile(name, server);
    dat.setInventory(inv);
    dat.setPosition(player.position());
    dat.setLook(player.yaw(), player.pitch());
    dat.save();
    super.connect();
  }

  public void add(int id, int count, int damage) {
    inv.add(id, count, damage);
View Full Code Here

Examples of stripbandunk.tutorial.jtreehibernate.service.CategoryServiceImpl.save()

    public static void init() {
        Session session = HibernateHelper.getSessionFactory().openSession();
        CategoryServiceImpl service = new CategoryServiceImpl(session);

        service.save("Programming");
        service.save("Design");
        service.save("Photographt");
        service.save("Web");
        service.save("Database");
        service.save("Networking");
View Full Code Here

Examples of synalp.commons.utils.configuration.GeneratorConfiguration.save()

      GeneratorConfiguration jeniConfig = GeneratorConfiguration.getConfig();
      String swPath = ConsoleUtils.inString("Please enter the path of the " + file_type + " XML file :");
      // set the properties value
      jeniConfig.setProperty(property_name, swPath);
      // save properties to project root folder
      jeniConfig.save();
    }
    else if (swValue.matches("No|no|N|n"))
      configureMenu();
    else setProperty(file_type, property_name);
  }
View Full Code Here

Examples of test.com.william.document.Blog.save()

            e.printStackTrace();
        }
        //now you can use it

        Blog blog = Blog.create(map("userName", "yes", "_id", 1000));
        blog.save();
        blog = Blog.findById(1000);
        Assert.assertTrue("yes".equals(blog.getUserName()));

        Blog blog2 = Blog.create(map("userName", "no", "_id", 1001));
        blog2.save();
View Full Code Here

Examples of testrf.shared.TestRequestFactory.UserRequest.save()

        serverResponseLabel.setText("");

        UserRequest userContext = requests.userRequest();
        UserProxy user = userContext.create(UserProxy.class);
        user.setName(textToServer);
        userContext.save(user).fire(new Receiver<Long>() {

          @Override
          public void onSuccess(Long response) {
            Long id = response;
            Window.alert("Success saved." + id);
View Full Code Here

Examples of thewebsemantic.Bean2RDF.save()

      lt.setFeatures(features);
      lt.setGeneralInfo(gi);
      lt.setTechnicalInfo(ti);

      writer.save(lt);

      m.write(new FileOutputStream("LearningTools.rdf"), "RDF/XML");
      m.write(System.out, "RDF/XML");

    } catch (Exception e) {
View Full Code Here

Examples of uk.ac.cam.ha293.tweetlabel.topics.LDATopicModel.save()

      lda = LDATopicModel.load(description);
    } else {
      System.out.println("Couldn't find LDA model "+description+", creating new one");
      lda = new LDATopicModel(corpus,numTopics,burn,sample,0,alpha,0.01);
      lda.runGibbsSampling();
      lda.save(description);
    }
   
    try {
      //Get the document topic distributions and store these
      List<List<WordScore>> docTopics = lda.getDocuments();
View Full Code Here

Examples of uk.ac.cam.ha293.tweetlabel.topics.LLDATopicModel.save()

      llda = LLDATopicModel.load(topicType,description);
    } else {
      System.out.println("Couldn't find LLDA model "+description+", creating new one");
      llda = new LLDATopicModel(corpus,burn,sample,lag,1,0.01);
      llda.runGibbsSampling();
      llda.save(description);
    }
   
    try {
      //Get the document topic distributions and store these
      List<List<WordScore>> docTopics = llda.getDocuments();
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.