Examples of IDataStorage


Examples of org.jamesii.core.data.storage.IDataStorage

    this.setVisible(false);

    ParameterizedFactory<DataStorageFactory> dsFactoryPair =
        confDSPanel.getSelectedFactoryAndParameter();

    IDataStorage dataStorage = null;

    if (dsFactoryPair.getFactory() != null) {
      dataStorage =
          dsFactoryPair.getFactory().create(dsFactoryPair.getParameters(), SimSystem.getRegistry().createContext());
    }
View Full Code Here

Examples of org.jamesii.core.data.storage.IDataStorage

   *
   * @return the data storage, or null if no factory and parameters are given
   */
  public IDataStorage createPlainDataStorage() {
    if (dataStorageFactory != null && dataStorageFactory.isInitialized()) {
      IDataStorage dataStorage =
          dataStorageFactory.getFactoryInstance().create(
              dataStorageFactory.getParameter(), SimSystem.getRegistry().createContext());
      dataStorage.setExperimentID(experimentID);
      dataStorage.setConfigurationID(experimentID, uniqueID);
      // ExperimentInfo exi = new ExperimentInfo();
      // dataStorage.w
      // exi.setDataBase(this.g)
      // dataStorage.writeExperimentInformation(expId, exi);
      return dataStorage;
View Full Code Here

Examples of org.jamesii.core.data.storage.IDataStorage

  /**
   * Test some aspects of parallelism.
   */
  public void testSomeAspectsOfParallelism() {
    IDataStorage stor1 = createDataStorage();
    stor1.setExperimentID(UniqueIDGenerator.createUniqueID());
    IDataStorage stor2 = createDataStorage();
    stor2.setExperimentID(UniqueIDGenerator.createUniqueID());
    assertEquals(stor1.getNumberOfExperiments(), stor2.getNumberOfExperiments());
  }
View Full Code Here

Examples of org.jamesii.core.data.storage.IDataStorage

          SimSystem.getRegistry().instantiateFactory(dataStorageFactoryClass);

      // If data storage factory could be instantiated, use it to create a data
      // storage
      if (dsFactory != null) {
        IDataStorage dataStorage = dsFactory.create(dataStorageParameters, SimSystem.getRegistry().createContext());
        dataStorage.setExperimentID(experimentID);
        dataStorage.setConfigurationID(experimentID, configurationID);
        dataStorage.setComputationTaskID(experimentID, configurationID,
            taskID.getId());
        return dataStorage;
      }
    }
View Full Code Here

Examples of org.jamesii.core.data.storage.IDataStorage

   * @param fileName
   */
  public final void execute(ParameterizedFactory<DataStorageFactory> factory,
      String fileName) {

    IDataStorage ds =
        factory.getFactoryInstance().create(factory.getParameter(), SimSystem.getRegistry().createContext());

    this.execute(ds, fileName);
  }
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.