Package core
Class Network
- java.lang.Object
-
- core.Network
-
public class Network extends Object
Container for the network. This class provides access to the links, nodes, and road connections in the network.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Linkget_link(long id)Get link by idSet<List<Long>>get_link_connectivity()Map<Long,Link>get_links()Get map of linksNodeget_node(long id)Get node by idMap<Long,Node>get_nodes()Get map of nodesMap<Long,RoadConnection>get_roadconnections()Get map of road connectionsSet<Long>link_ids()Get idsSet<Long>node_ids()Get node idsSet<Long>source_link_ids()Get source link idsStringtoString()
-
-
-
Method Detail
-
get_roadconnections
public Map<Long,RoadConnection> get_roadconnections()
Get map of road connections
-
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
-
-