Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkupSubunit<ServiceBase<?,
- com.anylogic.engine.markup.ServiceUnit<QueuePath>
- com.anylogic.engine.markup.ServiceLine
- All Implemented Interfaces:
HasBoundingRectangle,Serializable
public class ServiceLine extends ServiceUnit<QueuePath> implements HasBoundingRectangle
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
ServiceLine | |
ServiceLine |
| Modifier and Type | Method | 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 |
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 |
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 |
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 |
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
|
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()
- Specified by:
getBoundingRectanglein interfaceHasBoundingRectangle- Overrides:
getBoundingRectanglein classServiceUnit<QueuePath>