Package org.jamesii.core.model

Examples of org.jamesii.core.model.IModel


    // Instantiate model and simulation
    ISimulationRun simulation = null;

    try {
      IModel model =
          createModel((SimulationRunConfiguration) computationTaskConfig,
              modelReader, execMeasures);
      simulation =
          createSimulation((SimulationRunConfiguration) computationTaskConfig,
              resources, execMeasures, model);
View Full Code Here


   * @throws Throwable
   *           the throwable
   */
  protected static IModel createModel(SimulationRunConfiguration simRunConfig,
      IModelReader modelReader, ExecutionMeasurements execMeasures) {
    IModel model;
    execMeasures.startModelCreation();
    model =
        modelReader.read((URI) simRunConfig.getAbsModelReaderFactoryParams()
            .getSubBlockValue(AbstractModelReaderFactory.URI), simRunConfig
            .getParameters());
View Full Code Here

   * Does nothing here, can be used in descendant classes for special jobs.
   */
  protected void cleanUp() {
    setStatus(ProcessorStatus.STOPPED);
    getOwner().cleanUp();
    IModel model = getOwner().getModel();
    if (getOwner().getModel() != null) {
      model.cleanUp();
    }
  }
View Full Code Here

      // System.out.println("the part " + partition);
      // System.out.println("the model " + partition.getModel());

      // If model could not be instantiated, it cannot be simulated
      IModel model = partition.getModel();
      if (model == null) {
        SimSystem
            .report(Level.SEVERE,
                "The model is null! Selecting of a processor factory is not possible.");
        factories.clear();
View Full Code Here

    try {
      println("Memory (): " + Runtime.getRuntime().totalMemory() + " : "
          + Runtime.getRuntime().freeMemory());
      StopWatch sw = new StopWatch();
      sw.start();
      IModel model = createModel();
      sw.stop();
      result.modelCreation = sw.elapsedSeconds();
      println("Seconds needed for creating the model: " + sw.elapsedSeconds());
      println("Memory (model - [total:free]): "
          + Runtime.getRuntime().totalMemory() + " : "
View Full Code Here

  @Override
  public ISimulationRun createSimulation(IModel model,
      SimulationRunConfiguration simConfig) throws RemoteException {

    try {
      IModel localModel = model;
      SimulationRun simulation =
          new SimulationRun("sim", localModel, simConfig, null);
     
      SimSystem.report(Level.INFO, "Created computation task for "+model);
     
View Full Code Here

TOP

Related Classes of org.jamesii.core.model.IModel

Copyright © 2018 www.massapicom. 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.