MATSIM
Transfer.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.* *
3  *
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2023 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 ch.sbb.matsim.routing.pt.raptor;
21 
27 
31 public class Transfer {
32  RTransfer rTransfer = null;
33  RRouteStop fromStop = null;
34  RRouteStop toStop = null;
35 
36  void reset(RTransfer transfer, RRouteStop rFromStop, RRouteStop rToStop) {
37  this.rTransfer = transfer;
38  this.fromStop = rFromStop;
39  this.toStop = rToStop;
40  }
41 
43  return this.fromStop.routeStop.getStopFacility();
44  }
45 
47  return this.toStop.routeStop.getStopFacility();
48  }
49 
50  public double getTransferTime() {
51  return this.rTransfer.transferTime;
52  }
53 
54  public double getTransferDistance() {
55  return this.rTransfer.transferDistance;
56  }
57 
59  return this.fromStop.line;
60  }
61 
63  return this.fromStop.route;
64  }
65 
67  return this.toStop.line;
68  }
69 
71  return this.toStop.route;
72  }
73 }