Package core

Class Network


  • public class Network
    extends Object
    Container for the network. This class provides access to the links, nodes, and road connections in the network.
    • Constructor Detail

      • Network

        public Network​(Scenario scenario)
      • Network

        public Network​(Scenario scenario,
                       jaxb.Nodes jaxb_nodes,
                       List<jaxb.Link> jaxb_links,
                       jaxb.Roadgeoms jaxb_geoms,
                       jaxb.Roadconnections jaxb_conns,
                       jaxb.Roadparams jaxb_params)
                throws error.OTMException
        Throws:
        error.OTMException
    • Method Detail

      • get_nodes

        public Map<Long,​Node> get_nodes()
        Get map of nodes
      • get_links

        public Map<Long,​Link> get_links()
        Get map of links
      • get_roadconnections

        public Map<Long,​RoadConnection> get_roadconnections()
        Get map of road connections
      • node_ids

        public Set<Long> node_ids()
        Get node ids
      • link_ids

        public Set<Long> link_ids()
        Get ids
      • source_link_ids

        public Set<Long> source_link_ids()
        Get source link ids
      • get_node

        public Node get_node​(long id)
                      throws error.OTMException
        Get node by id
        Throws:
        error.OTMException
      • get_link

        public Link get_link​(long id)
                      throws error.OTMException
        Get link by id
        Throws:
        error.OTMException
      • get_link_connectivity

        public Set<List<Long>> get_link_connectivity()