MATSIM
UmlaufStueck.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * UmlaufStueck.java
5  * *
6  * *********************************************************************** *
7  * *
8  * copyright : (C) 2019 by the members listed in the COPYING, *
9  * LICENSE and WARRANTY file. *
10  * email : info at matsim dot org *
11  * *
12  * *********************************************************************** *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * See also COPYING, LICENSE and WARRANTY file *
19  * *
20  * *********************************************************************** */
21 
22  package org.matsim.pt;
23 
28 
29 public class UmlaufStueck implements UmlaufStueckI {
30 
31  private TransitLine line;
34 
36  Departure departure) {
37  this.line = line;
38  this.route = route;
39  this.departure = departure;
40  }
41 
42  @Override
43  public TransitLine getLine() {
44  return line;
45  }
46 
47  @Override
49  return route;
50  }
51 
52  @Override
54  return departure;
55  }
56 
57  @Override
59  return route.getRoute();
60  }
61 
62  @Override
63  public boolean isFahrt() {
64  return true;
65  }
66 
67 
68 }
UmlaufStueck(TransitLine line, TransitRoute route, Departure departure)