Package com.anylogic.engine.markup
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorPathPart
- Methods inherited from class com.anylogic.engine.markup.ConveyorMarkupElement
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.ConveyorMarkupElement<T>
- com.anylogic.engine.markup.ConveyorPathPart<T>
- com.anylogic.engine.markup.ConveyorStation<T>
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,INetworkMarkupElement
,SVGElement
,Serializable
- Direct Known Subclasses:
ConveyorSimpleStation
public abstract class ConveyorStation<T extends Agent> extends ConveyorPathPart<T>
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ConveyorStation | |
ConveyorStation |
Constructor
|
ConveyorStation |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
double | getLength |
Returns the length of this element
|
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
Point | randomPointInside |
Returns the randomly chosen point inside/along the given space markup element.
|
void | setLength |
Sets length of this conveyor part in XY-projection, measured in the given units.
|
void | setNetwork |
Sets the network for this element.
|
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public ConveyorStation(ConveyorPath<? extends T> conveyor)
public ConveyorStation(ConveyorPath<? extends T> conveyor, double offset, double lengthInMeters)
Constructor
- Parameters:
conveyor
- the conveyoroffset
- offset measured from the beginning of conveyor to the end of this station, in pixels.lengthInMeters
- the length of this station in meters.
public ConveyorStation(ConveyorPath<? extends T> conveyor, ShapeDrawMode drawMode, boolean isPublic, double offset, double lengthInMeters)
Constructor
- Parameters:
conveyor
- the conveyordrawMode
-isPublic
-offset
- offset measured from the beginning of conveyor to the end of this station, in pixels.lengthInMeters
- the length of this station in meters.
public void setNetwork(ConveyorNetwork network)
Description copied from class:
ConveyorMarkupElement
Sets the network for this element. The element should be uninitialized
- Overrides:
setNetwork
in classConveyorMarkupElement<T extends Agent>
- Parameters:
network
- new network
public double getLength(LengthUnits units)
Returns the length of this element
- Parameters:
units
- length units- Returns:
- the length of this element
public void setLength(double length, LengthUnits units)
Sets length of this conveyor part in XY-projection, measured in the given units.
- Parameters:
length
- , measured in the given units
public double getNearestPoint(Point givenPoint, Point out)
Description copied from interface:
INetworkMarkupElement
Calculates (using the
output
object) the point in this space markup element
nearest to the given point. Returns the square of distance to the point.- Parameters:
givenPoint
- given pointout
- the output point to write result to.- Returns:
- the square of distance to the nearest point
public Point randomPointInside(Random rng, Point out)
Description copied from interface:
INetworkMarkupElement
Returns the randomly chosen point inside/along the given space markup element.
This method utilises the given Random Number Generator.
- Parameters:
rng
- the random number generator.out
- output object to write to, may benull
- Returns:
- the randomly chosen point
public boolean contains(double px, double py)
Description copied from class:
MarkupShape
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y)
- Specified by:
contains
in interfaceINetworkMarkupElement
- Specified by:
contains
in classMarkupShape
- Parameters:
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's container- Returns:
true
if the shape contains the point with the given coordinates