Examples of create()


Examples of org.jamesii.core.data.experiment.write.plugintype.ExperimentWriterFactory.create()

      if (erwf == null) {
        SimSystem.report(Level.SEVERE, "Can't get ExperimentWriterFactory!");
        return;
      }

      IExperimentWriter writer = erwf.create(parameter, SimSystem.getRegistry().createContext());

      // write BaseExperiment to the file
      try {
        writer.writeExperiment(parameter, experiment);
        SimSystem.report(Level.CONFIG, "Experiment backup saved to: "

Examples of org.jamesii.core.data.model.ModelFileWriterFactory.create()

          file.deleteOnExit();

          modelURI = Files.getURIFromFile(file);

          block.addSubBl(IURIHandling.URI, modelURI);
          IModelWriter writer = selected.create(block, SimSystem.getRegistry().createContext());

          writer.write(model, modelURI);
        }
      } catch (Throwable t) {
        modelURI = null;

Examples of org.jamesii.core.data.model.read.plugintype.ModelReaderFactory.create()

    ModelReaderFactory mrwf =
        SimSystem.getRegistry().getFactory(AbstractModelReaderFactory.class,
            amrwfp);
    Map<String, Serializable> parameters = new HashMap<>();
    parameters.putAll(simProblem.getSchemeParameters());
    return mrwf.create(null, SimSystem.getRegistry().createContext()).read(
        (URI) amrwfp.getSubBlockValue(IURIHandling.URI), parameters);
  }

  /**
   * Gets the model from runtime parameter block.

Examples of org.jamesii.core.data.resilience.plugintype.DataResilienceFactory.create()

        parameter.addSubBlock(DataResilienceFactory.USER, "root");
        parameter.addSubBlock(DataResilienceFactory.PASSWORD, "");
        parameter.addSubBlock(DataResilienceFactory.DRIVER, "com.mysql.jdbc.Driver");
        parameter.addSubBlock(DataResilienceFactory.DATABASEURL,
            "jdbc:mysql://localhost/test");
        setDataStorage(factory.create(parameter, SimSystem.getRegistry().createContext()));
      } catch (Exception ex) {
        SimSystem.report(Level.SEVERE,
            "It was not possible to establish the Resilience data connection! "
                + "Will continue without resilience support!", ex);
      }

Examples of org.jamesii.core.data.storage.plugintype.DataStorageFactory.create()

      try {
        dsf = dsFactory.newInstance();
      } catch (Exception ex) {
        throw new IllegalArgumentException(ex);
      }
      dataStorage = dsf.create(dsParameters, SimSystem.getRegistry().createContext());
    }
  }

  /**
   * Gets the exp id.

Examples of org.jamesii.core.distributed.allocation.plugintype.SimulationResourceAllocatorFactory.create()

    ParameterBlock allocParams =
        execParams.getSubBlock(ParameterUtils.SIM_RESOURCE_ALLOCATION);
    SimulationResourceAllocatorFactory sraf =
        SimSystem.getRegistry().getFactory(
            AbstractSimulationResourceAllocatorFactory.class, allocParams);
    return sraf.create(allocParams, SimSystem.getRegistry().createContext());
  }

  @Override
  public void finished() {
    modelObservers.clear();

Examples of org.jamesii.core.distributed.partitioner.partitioning.plugintype.PartitioningFactory.create()

      // coarsened graph!
      PartitioningFactory pFactory =
          SimSystem.getRegistry().getFactory(AbstractPartitioningFactory.class,
              pb);
      singleLevelPartitioningAlgo =
          pFactory.create(null, modelGraph, hardwareGraph);
    } catch (Exception ex) {
      SimSystem.report(ex);
      return false;
    }

Examples of org.jamesii.core.experiments.tasks.stoppolicy.plugintype.ComputationTaskStopPolicyFactory.create()

        SimSystem.report(Level.SEVERE,
            "Could not initialize stop policy factory.", e);
      }
    }

    simRunStopPolicy = stopPolicyFactory.create(pb, SimSystem.getRegistry().createContext());

  }

  /**
   * Enables exact thread monitoring if MONITORING_ENABLED is true.

Examples of org.jamesii.core.math.random.generators.plugintype.RandomGeneratorFactory.create()

        ParameterUtils.getFactorySubBlock(params, RandomGeneratorFactory.class);
    RandomGeneratorFactory mbFac =
        SimSystem.getRegistry().getFactory(
            AbstractRandomGeneratorFactory.class, rngParameters);
    return new StochSearchPortfolioSelector(params.getSubBlockValue(
        SAMPLE_SIZE, DEFAULT_SAMPLE_SIZE), mbFac.create(rngParameters, SimSystem.getRegistry().createContext()));
  }

}

Examples of org.jamesii.core.model.plugintype.ModelFactory.create()

      model = modelCache.get(value);
      // try to determine available editors
      if (value != null) {
        if (model == null) {
          model = value.create();
          modelCache.put(value, model);
        }

        canNext = canNext && model != null;
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.