MATSIM
LanesFactoryImpl.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * BasicLaneDefinitionsBuilderImpl
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 package org.matsim.lanes;
21 
22 import org.matsim.api.core.v01.Id;
24 
25 
31 final class LanesFactoryImpl implements LanesFactory {
35  @Override
36  public LanesToLinkAssignment createLanesToLinkAssignment(Id<Link> linkIdReference) {
37  return new LanesToLinkAssignmentImpl(linkIdReference);
38  }
42  @Override
43  public Lane createLane(Id<Lane> id) {
44  return new LaneImpl(id);
45  }
46 }