MATSIM
QLaneI.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * *
4  * *********************************************************************** *
5  * *
6  * copyright : (C) 2013 by the members listed in the COPYING, *
7  * LICENSE and WARRANTY file. *
8  * email : info at matsim dot org *
9  * *
10  * *********************************************************************** *
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * See also COPYING, LICENSE and WARRANTY file *
17  * *
18  * *********************************************************************** */
19 
20 package org.matsim.core.mobsim.qsim.qnetsimengine;
21 
22 import java.util.Collection;
23 
24 import org.matsim.api.core.v01.Id;
27 import org.matsim.lanes.Lane;
28 import org.matsim.vehicles.Vehicle;
30 
31 
38 public interface QLaneI extends Identifiable<Lane> {
39 
40  void addFromWait( final QVehicle veh);
41 
42  boolean isAcceptingFromWait(QVehicle veh);
43 
44  boolean isActive();
45 
47 
49 
50  QVehicle getVehicle(final Id<Vehicle> vehicleId);
51 
52  double getStorageCapacity();
53 
54  static interface VisData {
55  public Collection<AgentSnapshotInfo> addAgentSnapshotInfo(Collection<AgentSnapshotInfo> positions, double now ) ;
56  }
57 
59 
68 
69  void changeUnscaledFlowCapacityPerSecond( final double val ) ;
70 
71  void changeEffectiveNumberOfLanes( final double val ) ;
72 
73  boolean doSimStep();
74 
75  void clearVehicles();
76 
77  Collection<MobsimVehicle> getAllVehicles();
78 
79  void addFromUpstream(final QVehicle veh);
80 
81  boolean isNotOfferingVehicle();
82 
84 
86 
88 
89  boolean isAcceptingFromUpstream();
90 
91 // void changeSpeedMetersPerSecond(double val) ;
92  // cannot be consistently implemented with current design, since it is not a parameter of the LinkSpeedCalculator. kai, feb'18
93 
98  double getLoadIndicator() ;
99 
100  void initBeforeSimStep();
101  // yyyy could you please explain why this here was added. Why can't the same thing be done at the beginning of "doSimStep"? kai, nov'18
102 
103 }
Collection< AgentSnapshotInfo > addAgentSnapshotInfo(Collection< AgentSnapshotInfo > positions, double now)
QVehicle getVehicle(final Id< Vehicle > vehicleId)
void addTransitSlightlyUpstreamOfStop(final QVehicle veh)
void changeUnscaledFlowCapacityPerSecond(final double val)
Collection< MobsimVehicle > getAllVehicles()