Package org.jamesii.core.experiments.tasks

Examples of org.jamesii.core.experiments.tasks.ComputationTaskIDObject


      SimulationRunConfiguration config) {

    // model.setModel(null);
    // System.out.println(neighbourModelInformation);
    SimulationRun simulation =
        new SimulationRun(part, "Sim", new ComputationTaskIDObject(),
            neighbourInformation, config);

    SimSystem.report(Level.INFO, "Created computation task for "+part.getModel());
   
    taskManager.addComputationTask(simulation, config);
View Full Code Here


      IComputationTask computationTask) {
    if (computationTasks.size() == 0) {
      return;
    }

    ComputationTaskIDObject info = computationTask.getUniqueIdentifier();
    int c = 0;
    for (IComputationTask sim : computationTasks) {
      if (sim.getUniqueIdentifier().compareTo(info) == 0) {
        break;
      }
View Full Code Here

          @Override
          public void execute() {
            synchronized (this) {
              ISimulationServer simServer = (ISimulationServer) getServer();
              ComputationTaskIDObject info =
                  (ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
              try {
                simServer.startSimulationRun(info);
              } catch (RemoteException e) {
                SimSystem.report(e);
              }
            }
          }
        };
    action.setEnabled(getSelectedNodeInfo() != null);
    actions.add(action);

    action =
        new AbstractAction("simulation.pause", "pause", pauseIcon,
            new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            synchronized (this) {
              ISimulationServer simServer = (ISimulationServer) getServer();
              ComputationTaskIDObject info =
                  (ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
              try {
                simServer.executeRunnableCommand(info, "pause", null);
              } catch (RemoteException e) {
                SimSystem.report(e);
              }
            }
          }
        };
    action.setEnabled(getSelectedNodeInfo() != null);
    actions.add(action);

    action =
        new AbstractAction("simulation.stop", "stop", stopIcon,
            new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            synchronized (this) {
              ISimulationServer simServer = (ISimulationServer) getServer();
              ComputationTaskIDObject info =
                  (ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
              try {
                simServer.stopProc(info);
              } catch (RemoteException e) {
                SimSystem.report(e);
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.tasks.ComputationTaskIDObject

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.