Package ca.nengo.ui.actions

Examples of ca.nengo.ui.actions.RunSimulatorAction$RunSimulatorActivity


    public static final String typeName = "Network";

    public static void constructSimulatorMenu(PopupMenuBuilder menu, UINetwork network) {
        menu.addSection("Run");
        menu.addAction(new RunSimulatorAction("Simulate " + network.getName(), network));
        menu.addAction(new RunInteractivePlotsAction(network));
    }
View Full Code Here


    super(FuzzyLogicExample.createNetwork());
  }

  @Override
  protected void doStuff(UINetwork network) {
    (new RunSimulatorAction("Run", network, 0f, 1f, 0.002f)).doAction();
    NengoGraphics.getInstance().setDataViewerPaneVisible(true);
  }
View Full Code Here

    return network;
  }

  @Override
  protected void doStuff(UINetwork network) {
    (new RunSimulatorAction("Run", network, 0f, 1f, 0.002f)).doAction();


   
  }
View Full Code Here

        WorldObject selectedNode = SelectionHandler.getActiveObject();

        UINetwork selectedNetwork = UINetwork.getClosestNetwork(selectedNode);
        if (selectedNetwork != null) {

            RunSimulatorAction runAction = new RunSimulatorAction("run", selectedNetwork);
            runAction.doAction();

        } else {
            throw new ActionException("No parent network to run, please select a node");
        }
    }
View Full Code Here

    });

  }

  private void doPostUIStuff() {
    RunSimulatorAction simulatorRunner = new RunSimulatorAction("Run",
        network, 0f, 1f, 0.0002f);
    simulatorRunner.doAction();

    NengoGraphics.getInstance().setDataViewerPaneVisible(true);
  }
View Full Code Here

                node = node.getNetworkParent();
            }

            UINetwork network = (UINetwork) node;

            simulateAction = new RunSimulatorAction("Simulate " + network.getName(), network);
            interactivePlotsAction = new RunInteractivePlotsAction(network);
        } else {
            simulateAction = new DisabledAction("Simulate", "No object selected");
            interactivePlotsAction = new DisabledAction("Interactive Plots", "No object selected");
        }
View Full Code Here

TOP

Related Classes of ca.nengo.ui.actions.RunSimulatorAction$RunSimulatorActivity

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.