Package org.jamesii.core.experiments

Examples of org.jamesii.core.experiments.ComputationRuntimeState


  }

  @Override
  public void refreshIcon(ComputationTaskRuntimeInformation srti) {
    synchronized (this) {
      ComputationRuntimeState state = srti.getState();

      // if not paused we do not need to continue
      if (state != ComputationRuntimeState.PAUSED) {
        setEnabled(false);
        return;
View Full Code Here


  }

  @Override
  public void actionPerformed(ActionEvent e) {
    synchronized (this) {
      ComputationRuntimeState state = getSimRuntimeInfo().getState();
      switch (state) {
      case RUNNING:
        SimSystem.report(Level.INFO,
            "Pause the simulation to be able to run it stepwise!");
        break;
View Full Code Here

  }

  @Override
  public void refreshIcon(ComputationTaskRuntimeInformation srti) {
    synchronized (this) {
      ComputationRuntimeState state = srti.getState();
      switch (state) {
      case PAUSED:
        setEnabled(true);
        break;
      default:
View Full Code Here

        if (!simControllingPossible()) {
          SimSystem.report(Level.INFO,
              "Computing the computation task stepwise is not possible.");
          return;
        }
        ComputationRuntimeState state = getSimRuntimeInfo().getState();
        if (state == ComputationRuntimeState.RUNNING) {
          run.pause();
        }

        // show input dialog where the user can enter the steps amount to
View Full Code Here

  }

  @Override
  public void refreshIcon(ComputationTaskRuntimeInformation srti) {
    synchronized (this) {
      ComputationRuntimeState state = srti.getState();
      switch (state) {
      case PAUSED:
      case RUNNING:
        setEnabled(true);
        break;
View Full Code Here

  }

  @Override
  public void actionPerformed(ActionEvent e) {
    synchronized (this) {
      ComputationRuntimeState state = getSimRuntimeInfo().getState();
      IComputationTask task = getSimRuntimeInfo().getComputationTask();
      if (task == null) {
        // nothing to control
        return;
      }
View Full Code Here

  }

  @Override
  public void refreshIcon(ComputationTaskRuntimeInformation srti) {
    synchronized (this) {
      ComputationRuntimeState state = srti.getState();
      setEnabled(true);
      switch (state) {
      case RUNNING:
        putValue(SHORT_DESCRIPTION, "Pause simulation");
        putValue(SMALL_ICON,
View Full Code Here

  }

  @Override
  public void actionPerformed(ActionEvent e) {
    synchronized (this) {
      ComputationRuntimeState state = getSimRuntimeInfo().getState();
      switch (state) {
      case RUNNING:
        SimSystem.report(Level.INFO,
            "Pause the simulation to be able to run it stepwise!");
        break;
View Full Code Here

  }

  @Override
  public void refreshIcon(ComputationTaskRuntimeInformation srti) {
    synchronized (this) {
      ComputationRuntimeState state = srti.getState();
      switch (state) {
      case PAUSED:
        setEnabled(true);
        break;
      default:
View Full Code Here

  }

  @Override
  public void actionPerformed(ActionEvent e) {
    synchronized (this) {
      ComputationRuntimeState state = getSimRuntimeInfo().getState();

      switch (state) {
      case PAUSED:
      case RUNNING:
        if (!simControllingPossible()) {
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.ComputationRuntimeState

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.