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

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

Constructor Summary

Constructors 
AbstractRoadSidePart()  
AbstractRoadSidePart​(Road road, ShapeDrawMode drawMode, boolean isPublic, boolean isOnForwardSide, double offset)
Creates abstract road part.
Constructor Description

Method Summary

All Methods Instance Methods Abstract Methods Concrete Methods 
abstract double getLength()  
boolean isOnForwardSide()
Returns true if the road part is located on forward side of road segment, false otherwise.
void setOnForwardSide​(boolean isOnForwardSide)  
Modifier and Type Method Description

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

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 Detail

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()
How can we improve this article?