MATSIM
TransitRouteStop.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * TransitRouteStop.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.pt.transitSchedule.api;
22 
24 
31 public interface TransitRouteStop {
32 
33  public abstract TransitStopFacility getStopFacility();
34 
35  public abstract void setStopFacility(final TransitStopFacility stopFacility);
36 
37  public abstract OptionalTime getDepartureOffset();
38 
39  public abstract OptionalTime getArrivalOffset();
40 
42  boolean isAllowBoarding();
43 
44  void setAllowBoarding(boolean allowBoarding);
45 
47  boolean isAllowAlighting();
48 
49  void setAllowAlighting(boolean allowAlighting);
50 
59  public abstract void setAwaitDepartureTime(final boolean awaitDepartureTime);
60 
71  public abstract boolean isAwaitDepartureTime();
72 
73  interface Builder<B extends Builder<B>> {
75 
76  Builder<B> departureOffset(double val);
77 
78  Builder<B> arrivalOffset(double val);
79 
80  Builder<B> awaitDepartureTime(boolean val);
81 
82  Builder<B> allowBoarding(boolean val);
83 
84  Builder<B> allowAlighting(boolean val);
85 
87  }
88 }
Builder< B > stop(TransitStopFacility val)
abstract void setAwaitDepartureTime(final boolean awaitDepartureTime)
abstract void setStopFacility(final TransitStopFacility stopFacility)
void setAllowAlighting(boolean allowAlighting)
abstract TransitStopFacility getStopFacility()