Examples of addNode()


Examples of aimax.osm.data.entities.Track.addNode()

    clearTrack(trackName);
    Track track = new DefaultTrack(nextTrackId++, trackName, trackName);
    updateEntityViewInfo(track, false);
    tracks.add(track);
    for (Position pos : positions)
      track.addNode(pos);
    fireMapDataEvent(new MapEvent(this, MapEvent.Type.TRACK_MODIFIED, track
        .getId()));
  }

  /** {@inheritDoc} */
 
View Full Code Here

Examples of bgu.bio.adt.graphs.FlexibleGraph.addNode()

public class TestFlexibleGraphs {

  @Test
  public void testDirected1() {
    FlexibleGraph graph = new FlexibleGraph();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
View Full Code Here

Examples of bgu.bio.adt.graphs.FlexibleUndirectedGraph.addNode()

  }

  @Test
  public void testUnDirected1() {
    FlexibleUndirectedGraph graph = new FlexibleUndirectedGraph();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
    graph.addNode();
View Full Code Here

Examples of brooklyn.entity.group.DynamicCluster.addNode()

                    .put("entity", entity)
                    .putIfNotNull("imageId", imageId)
                    .putIfNotNull("hardwareId", hardwareId)
                    .build();
            DynamicCluster cluster = dockerHost.getDockerContainerCluster();
            Entity added = cluster.addNode(machine, containerFlags);
            if (added == null) {
                throw new NoMachinesAvailableException(String.format("Failed to create container at %s", dockerHost.getDockerHostName()));
            } else {
                Entities.start(added, ImmutableList.of(machine));
            }
View Full Code Here

Examples of bs.bs2d.fea.TriMesh2D.addNode()

               
                int ni = Integer.parseInt(vals[0]);
                float x = Float.parseFloat(vals[1]);
                float y = Float.parseFloat(vals[2]);
               
                mesh.addNode(new Node2D(ni, x, y));
            }
            index += nodes;
           
            // read elements
            for(int i=0; i < elems; i++){
View Full Code Here

Examples of ca.nengo.model.Network.addNode()

    Network network = new NetworkImpl();
    NEFEnsembleFactory factory = new NEFEnsembleFactoryImpl();
    NEFEnsemble ensemble = factory.make("Ensemble",100,2);
    File file = new File("testWTDSL.csv");
   
    network.addNode(ensemble);
   
    Probe probe = network.getSimulator().addProbe("Ensemble", "X", true);
    WriteToDiskSimulatorListener listener = new WriteToDiskSimulatorListener(file,probe,0.005f);
   
    network.getSimulator().addSimulatorListener(listener);
View Full Code Here

Examples of ca.nengo.model.impl.NetworkImpl.addNode()

    Network network = new NetworkImpl();
    NEFEnsembleFactory factory = new NEFEnsembleFactoryImpl();
    NEFEnsemble ensemble = factory.make("Ensemble",100,2);
    File file = new File("testWTDSL.csv");
   
    network.addNode(ensemble);
   
    Probe probe = network.getSimulator().addProbe("Ensemble", "X", true);
    WriteToDiskSimulatorListener listener = new WriteToDiskSimulatorListener(file,probe,0.005f);
   
    network.getSimulator().addSimulatorListener(listener);
View Full Code Here

Examples of com.alexgilleran.icesoap.xml.XMLParentNode.addNode()

  @Override
  protected XMLParentNodeImpl constructElement(String namespace, String name) {
    XMLParentNodeImpl baseNode = new XMLParentNodeImpl(namespace, name);

    XMLParentNode node1 = baseNode.addNode(NAMESPACE_NODE_1, NAME_NODE_1);
    node1.addNode(NAMESPACE_NODE_2, NAME_NODE_2);

    baseNode.addTextNode(NAMESPACE_TEXT_NODE, NAME_TEXT_NODE, VALUE_TEXT_NODE);

    return baseNode;
  }
View Full Code Here

Examples of com.alexgilleran.icesoap.xml.impl.XMLParentNodeImpl.addNode()

  @Override
  protected XMLParentNodeImpl constructElement(String namespace, String name) {
    XMLParentNodeImpl baseNode = new XMLParentNodeImpl(namespace, name);

    XMLParentNode node1 = baseNode.addNode(NAMESPACE_NODE_1, NAME_NODE_1);
    node1.addNode(NAMESPACE_NODE_2, NAME_NODE_2);

    baseNode.addTextNode(NAMESPACE_TEXT_NODE, NAME_TEXT_NODE, VALUE_TEXT_NODE);

    return baseNode;
View Full Code Here

Examples of com.dianping.cat.report.page.dependency.dashboard.ProductLinesDashboard.addNode()

            String nodeName = domain.getId();
            TopologyNode node = topologyGraph.findTopologyNode(nodeName);

            allDomains.add(nodeName);
            if (node != null) {
              dashboardGraph.addNode(realName, m_graphBuilder.cloneNode(node));
            }
          }
        }
      }
      Map<String, TopologyEdge> edges = topologyGraph.getEdges();
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. 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.