AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, SVGElement, Serializable
Direct Known Subclasses:
BusStop, ParkingLot, StopLine

@AnyLogicInternalAPI
public abstract class AbstractRoadSidePart
extends AbstractRoadPart
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
AbstractRoadSidePart() 
AbstractRoadSidePart(Road road, ShapeDrawMode drawMode, boolean isPublic, boolean isOnForwardSide, double offset)
Creates abstract road part.

Method Summary

Modifier and TypeMethodDescription
abstract doublegetLength() 
booleanisOnForwardSide()
Returns true if the road part is located on forward side of road segment, false otherwise.
voidsetOnForwardSide(boolean isOnForwardSide) 

Methods inherited from class com.anylogic.engine.markup.AbstractRoadPart

getOffset, getOffset, getRoad, setOffset, setOffset, setRoad

Methods inherited from class com.anylogic.engine.markup.AbstractRoadMarkup

contains, getLevel, getRoadNetwork, setDebugInfoVisible, setRoadNetwork

Methods inherited from class com.anylogic.engine.markup.MarkupShape

error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

postInitialize

Constructor Details

AbstractRoadSidePart

public AbstractRoadSidePart()

AbstractRoadSidePart

public AbstractRoadSidePart(Road road,
 ShapeDrawMode drawMode,
 boolean isPublic,
 boolean isOnForwardSide,
 double offset)
Creates abstract road part.
Parameters:
road - Road segment on which the road part 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 road part is created on forward or backward side of road segment.
offset - Offset (measured by guideline of lane adjacent to road part) from beginning of road axis to beginning of road part, in pixels.

Method Details

isOnForwardSide

public boolean isOnForwardSide()
Returns true if the road part is located on forward side of road segment, false otherwise.
Returns:
True if the road part is located on forward side of road segment, false otherwise.

setOnForwardSide

public void setOnForwardSide(boolean isOnForwardSide)
Parameters:
isOnForwardSide - if true the road part is located on forward side of road segment, false otherwise.

getLength

@AnyLogicInternalLibraryAPI
public abstract double getLength()