AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.markup.AbstractMarkupSegment
All Implemented Interfaces:
IMarkupSegment, java.io.Serializable
Direct Known Subclasses:
GISMarkupSegment, MarkupSegment

public abstract class AbstractMarkupSegment
extends java.lang.Object
implements IMarkupSegment, java.io.Serializable
This class represents a segment of IPath.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

Constructors 
AbstractMarkupSegment()  
Constructor Description

Method Summary

All Methods Instance Methods Abstract Methods Concrete Methods 
abstract Position getEnd​(Position out)
Returns the location of the end position of the segment
abstract Position getStart​(Position out)
Returns the location of the start position of the segment
double length()
Returns the length of the path segment
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

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

addTo, getDistanceSq, getEnd, getNearestPoint, getNearestPointOnRay2D, getOffsetOfPoint, getStart, setEnd, setStart, setStartNextTo

Constructor Detail

AbstractMarkupSegment

public AbstractMarkupSegment()

Method Detail

length

public double length()
Returns the length of the path segment
Specified by:
length in interface IMarkupSegment
Returns:
the length of the path segment, a positive number

getEnd

public abstract Position getEnd​(Position out)
Returns the location of the end position of the segment
Parameters:
out - output object to write to, may be null
Returns:
the Position object with coordinates of the segment end

getStart

public abstract Position getStart​(Position out)
Returns the location of the start position of the segment
Parameters:
out - output object to write to, may be null
Returns:
the Position object with coordinates of the segment start
How can we improve this article?