MATSIM
Network.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * Network.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2009 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.api.core.v01.network;
22 
23 import java.util.Map;
24 
25 import org.matsim.api.core.v01.Id;
28 
32 public interface Network extends MatsimToplevelContainer, Attributable {
33 
37  @Override
38  public NetworkFactory getFactory();
39 
46  public Map<Id<Node>, ? extends Node> getNodes();
47 
54  public Map<Id<Link>, ? extends Link> getLinks();
55 
67  public double getCapacityPeriod();
68 
69 
78  public double getEffectiveLaneWidth();
79 
80 
81  public void addNode(Node nn);
82  // "void" can still be changed into "boolean" or "Node", see "Collection" or "Map" interface.
83 
84  public void addLink(Link ll);
85 
92  public Node removeNode(final Id<Node> nodeId);
93 
101  public Link removeLink(final Id<Link> linkId);
102 
103  void setCapacityPeriod(double capPeriod);
104 
105  void setEffectiveCellSize(double effectiveCellSize);
106 
107  void setEffectiveLaneWidth(double effectiveLaneWidth);
108 
109  void setName(String name);
110 
111  String getName();
112 
113  double getEffectiveCellSize();
114 
115 }
void setEffectiveLaneWidth(double effectiveLaneWidth)
Map< Id< Node >, ? extends Node > getNodes()
Link removeLink(final Id< Link > linkId)
Node removeNode(final Id< Node > nodeId)
void setEffectiveCellSize(double effectiveCellSize)
void setCapacityPeriod(double capPeriod)
Map< Id< Link >, ? extends Link > getLinks()