public class BusStop extends AbstractRoadSidePart
Constructor and Description |
---|
BusStop() |
BusStop(Road road,
ShapeDrawMode drawMode,
boolean isPublic,
boolean isOnForwardSide,
double offset,
double lengthInMeters)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Agent> |
getCars()
Returns ordered list of cars located on this bus stop.
|
double |
getLength()
Returns length of bus stop along border with lane adjacent to bus stop, measured in pixels.
|
double |
getLength(LengthUnits units)
Returns length of bus stop measured in the given units along border with lane adjacent to bus stop.
|
int |
nCars()
Returns number of cars located on this bus stop
|
void |
postInitialize()
This method is internal and shouldn't be called by user.
|
void |
setDataSource(RoadBasicDataSource dataSource) |
void |
setLength(double lengthInPixels)
Deprecated.
this method is deprecated and may be removed in the next release. Please use method with units argument instead.
|
void |
setLength(double length,
LengthUnits units)
Sets length of bus stop measured in the given units along border with lane adjacent to bus stop
|
isOnForwardSide, setOnForwardSide
getOffset, getOffset, getRoad, setOffset, setOffset, setRoad
contains, getLevel, getRoadNetwork, setDebugInfoVisible, setRoadNetwork
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public BusStop()
@Deprecated public BusStop(Road road, ShapeDrawMode drawMode, boolean isPublic, boolean isOnForwardSide, double offset, double lengthInMeters)
road
- Road segment on which the bus stop is created.drawMode
- Where to draw this space markup shape: 2D, 3D or 2D+3D.ispublic
- If true
, the markup shape is visible on container's presentation.isOnForwardSide
- Flag specifying whether the bus stop is created on forward or backward side of road segment.offset
- Offset (measured by guideline of lane adjacent to bus stop) from beginning of road axis to beginning of bus stop, in pixels.lengthInMeters
- Length of bus stop measured in meters along border with lane adjacent to bus stop.@AnyLogicInternalAPI public void setDataSource(RoadBasicDataSource dataSource)
public int nCars()
public java.util.List<Agent> getCars()
@AnyLogicInternalAPI public void postInitialize()
AggregatableAnimationElement
public double getLength()
getLength
in class AbstractRoadSidePart
public double getLength(LengthUnits units)
@Deprecated public void setLength(double lengthInPixels)
lengthInPixels
- of bus stop in XY-projection, measured in pixelspublic void setLength(double length, LengthUnits units)
length
- of bus stop in XY-projectionunits
- length unitsCopyright © AnyLogic North America, LLC. All Rights Reserved.