AnyLogic
Expand
Font size
All Implemented Interfaces:
IMarkupSegment, java.io.Serializable
Direct Known Subclasses:
GISMarkupSegmentLine

public abstract class GISMarkupSegment
extends AbstractMarkupSegment
Markup segment for GIS space.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

All Methods Instance Methods Concrete Methods 
double length()
Returns the length of the path segment
void setEnd​(double lat, double lon)
Sets the end point of this GIS segment.
void setEnd​(Point endPoint)
Sets end point of this segment.
void setStart​(double lat, double lon)
Sets the starting point of this GIS segment.
void setStart​(Point startPoint)
Sets start point of this segment.
void setStartNextTo​(IMarkupSegment previousSegment)
Sets coordinates of the end of the specified segment as start coordinates of this segment.
Modifier and Type Method Description

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

getEnd, getStart

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

Method Detail

setStartNextTo

public final void setStartNextTo​(IMarkupSegment previousSegment)
Description copied from interface: IMarkupSegment
Sets coordinates of the end of the specified segment as start coordinates of this segment.
Parameters:
previousSegment - implementation of IMarkupSegment

setStart

public final void setStart​(double lat,
                           double lon)
Sets the starting point of this GIS segment. The segment should be uninitialized
Parameters:
lat - latitude
lon - longitude

setEnd

public final void setEnd​(double lat,
                         double lon)
Sets the end point of this GIS segment. The segment should be uninitialized
Parameters:
lat - latitude
lon - longitude

setStart

public void setStart​(Point startPoint)
Description copied from interface: IMarkupSegment
Sets start point of this segment.
Parameters:
startPoint - the point to set as start point of this segment

setEnd

public void setEnd​(Point endPoint)
Description copied from interface: IMarkupSegment
Sets end point of this segment.
Parameters:
endPoint - the point to set as end point of this segment

length

public double length()
Description copied from class: AbstractMarkupSegment
Returns the length of the path segment
Specified by:
length in interface IMarkupSegment
Overrides:
length in class AbstractMarkupSegment
Returns:
the length of the path segment, a positive number
How can we improve this article?