public static interface LaneBasedGTUGenerator.RoomChecker
| Modifier and Type | Method and Description | 
|---|---|
LaneBasedGTUGenerator.Placement | 
canPlace(SortedSet<HeadwayGTU> leaders,
        LaneBasedGTUCharacteristics characteristics,
        org.djunits.value.vdouble.scalar.Duration since,
        Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics. 
 | 
LaneBasedGTUGenerator.Placement canPlace(SortedSet<HeadwayGTU> leaders, LaneBasedGTUCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, Set<DirectedLanePosition> initialPosition) throws org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.GTUException
Placement.NO if there is no safe speed and position. This method might be called with an empty leader set
 such that the desired speed can be implemented.leaders - SortedSet<HeadwayGTU>; leaders, usually 1, possibly more after a branchcharacteristics - LaneBasedGTUCharacteristics; characteristics of the proposed new GTUsince - Duration; time since the GTU wanted to arriveinitialPosition - Set<DirectedLanePosition>; initial positionorg.opentrafficsim.core.network.NetworkException - this method may throw a NetworkException if it encounters an error in the network structureorg.opentrafficsim.core.gtu.GTUException - on parameter exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.