Package ca.nengo.ui.models.nodes

Examples of ca.nengo.ui.models.nodes.UINetwork


        if (node != null) {
            while (node.getNetworkParent() != null) {
                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


    @Override
    protected void action() throws ActionException {
        WorldObject selectedNode = SelectionHandler.getActiveObject();

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

            RunSimulatorAction runAction = new RunSimulatorAction("run", selectedNetwork);
            runAction.doAction();
View Full Code Here

    @Override
    protected void action() throws ActionException {
        WorldObject selectedNode = SelectionHandler.getActiveObject();

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

            SaveNodeAction saveNodeAction = new SaveNodeAction(selectedNetwork);
            saveNodeAction.doAction();
View Full Code Here

        SwingUtilities.invokeAndWait(new Runnable() {
          public void run() {

            try {
              network = new UINetwork(createNetwork());
              neoGraphics.getWorld().getGround().addChild(network);
              network.openViewer();
              // network.openViewer();
              //             
              // netView = new NetworkViewer(network);
View Full Code Here

    @Override
    protected void action() throws ActionException {
        WorldObject selectedNode = SelectionHandler.getActiveObject();

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

            GeneratePythonScriptAction generatePythonScriptAction = new GeneratePythonScriptAction(selectedNetwork);
            generatePythonScriptAction.doAction();
View Full Code Here

  private UINetwork network;

  public void createUINetwork(NengoGraphics nengoGraphics)
      throws StructuralException, SimulationException {

    network = new UINetwork(new NetworkImpl());
    nengoGraphics.getWorld().getGround().addChild(network);
    network.openViewer();
    network.getViewer().getGround().setElasticEnabled(true);

View Full Code Here

TOP

Related Classes of ca.nengo.ui.models.nodes.UINetwork

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.