Package org.jamesii.core.processor

Examples of org.jamesii.core.processor.IProcessor


   * @return the simulation run
   */
  public SimulationRun createProcessor(SimulationRun simulation,
      ParameterBlock parameter) {

    IProcessor proc;

    proc = processorFactory.create(getModel(), simulation, this, parameter, SimSystem.getRegistry().createContext());
    proc.setComputationTask(simulation);
    simulation.setProcessorInfo(new ProcessorInformation(proc));

    try {
      // System.out.println ("after creating the processor
      // "+this.getRemoteModel().getName());
View Full Code Here


          SimSystem.report(Level.INFO,
              "Running the simulation stepwise is not possible.");
          break;
        }

        IProcessor processor = getProcessor();
        if (processor instanceof IRunnable) {
          ((IRunnable) processor).next(1);
        }
        break;
      }
View Full Code Here

  @Override
  public void actionPerformed(ActionEvent e) {
    synchronized (this) {
      try {
        IProcessor processor =
            getSimRuntimeInfo().getComputationTask().getProcessorInfo()
                .getLocal();
        IRunnable run = null;
        if (processor instanceof IRunnable) {
          run = (IRunnable) processor;
View Full Code Here

          n = Integer.valueOf(steps);
        } catch (Exception ex) {
          SimSystem.report(Level.INFO, "No valid step count given!");
        }

        final IProcessor processor = getProcessor();
        final int c = n;
        if (processor instanceof IRunnable) {
          // calling next from separate thread because this is the EDT and next
          // blocks and therefore blocks the EDT
          // TODO next should block "run" and other "next btns"
View Full Code Here

TOP

Related Classes of org.jamesii.core.processor.IProcessor

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.