Package com.anylogic.engine.markup
- java.lang.Object
-
- com.anylogic.engine.markup.AbstractMarkupSubunit<ServiceBase<?,Q>>
-
- com.anylogic.engine.markup.ServiceUnit<QueuePath>
-
- com.anylogic.engine.markup.ServiceLine
- All Implemented Interfaces:
java.io.Serializable
public class ServiceLine extends ServiceUnit<QueuePath>
- See Also:
- Serialized Form
ServiceLine(double x,
double y,
double dx,
double dy) |
|
ServiceLine(double x,
double y,
double dx,
double dy,
ServiceQueueChoicePolicy queueChoicePolicy) |
|
Constructor | Description |
---|
BoundingRectangle |
getBoundingRectangle() |
|
double |
getEndX() |
Returns the x coordinate of the end of the queue line
|
double |
getEndY() |
Returns the y coordinate of the end of the queue line
|
double |
getEndZ() |
Returns the y coordinate of the end of the queue line
|
double |
getForwardOrientation() |
Returns the orientation (in angle radians) of this queue line
|
Position |
getForwardPositionByOffset(double offset,
Position out) |
Returns
Position object with forward orientation (see getForwardOrientation() ) and coordinates of the
point that is located at the given offset distance from the queue line starting point. |
Position |
getForwardStartPosition(Position out) |
Returns
Position object with start point and forward orientation |
double |
getReverseOrientation() |
Returns the orientation (in angle radians) opposite to this queue line orientation
|
Position |
getReversePositionByOffset(double offset,
Position out) |
Returns
Position object with reverse orientation (see getReverseOrientation() ) and coordinates of the
point that is located at the given offset distance from the queue line starting point. |
Position |
getReverseStartPosition(Position out) |
Returns
Position object with start point and reverse orientation |
double |
getStartX() |
Returns the x coordinate of the start of the queue line
|
double |
getStartY() |
Returns the y coordinate of the start of the queue line
|
double |
getStartZ() |
Returns the y coordinate of the start of the queue line
|
double |
length() |
Returns length in 2D space
|
Modifier and Type | Method | Description |
---|
customSelectQueue, getClosestQueue, getClosestQueueNotEmpty, getColor, getCustomQueueChoicePolicy, getLongestQueue, isSuspended, queuePriority, setColor, setSuspended
getName, getOwner
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ServiceLine(double x, double y, double dx, double dy)
public ServiceLine(double x, double y, double dx, double dy, ServiceQueueChoicePolicy queueChoicePolicy)
public double getStartX()
Returns the x coordinate of the start of the queue line
- Returns:
- the x coordinate of the start of the queue line
public double getStartY()
Returns the y coordinate of the start of the queue line
- Returns:
- the y coordinate of the start of the queue line
public double getStartZ()
Returns the y coordinate of the start of the queue line
- Returns:
- the y coordinate of the start of the queue line
public double getForwardOrientation()
Returns the orientation (in angle radians) of this queue line
- Returns:
- the orientation (in angle radians) of this queue line
public double getEndX()
Returns the x coordinate of the end of the queue line
- Returns:
- the x coordinate of the end of the queue line
public double getEndY()
Returns the y coordinate of the end of the queue line
- Returns:
- the y coordinate of the end of the queue line
public double getEndZ()
Returns the y coordinate of the end of the queue line
- Returns:
- the y coordinate of the end of the queue line
public double getReverseOrientation()
Returns the orientation (in angle radians) opposite to this queue line orientation
- Returns:
- the orientation (in angle radians) opposite to this queue line orientation
public Position getForwardStartPosition(Position out)
Returns
Position
object with start point and forward orientation- Parameters:
out
- output object to write into, may be null- Returns:
- line starting point with forward orientation
public Position getReverseStartPosition(Position out)
Returns
Position
object with start point and reverse orientation- Parameters:
out
- output object to write into, may be null- Returns:
- line starting point with reverse orientation
public Position getForwardPositionByOffset(double offset, Position out)
Returns
Position
object with forward orientation (see getForwardOrientation()
) and coordinates of the
point that is located at the given offset distance from the queue line starting point.- Parameters:
offset
- distance to pointout
- output object to write into, may be null- Returns:
- position at offset with forward orientation
public Position getReversePositionByOffset(double offset, Position out)
Returns
Position
object with reverse orientation (see getReverseOrientation()
) and coordinates of the
point that is located at the given offset distance from the queue line starting point.- Parameters:
offset
- distance to pointout
- output object to write into, may be null- Returns:
- position at offset with reverse orientation
public double length()
Returns length in 2D space
- Returns:
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
- Overrides:
getBoundingRectangle
in classServiceUnit<QueuePath>
-
How can we improve this article?
-