Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorNode
- 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.AbstractPositionalMarkup
- Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider
- Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Methods inherited from interface com.anylogic.engine.markup.INode
- Methods inherited from interface com.anylogic.engine.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- 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.ConveyorNode<T>
- com.anylogic.engine.markup.ConveyorCustomStation<T>
- All Implemented Interfaces:
AbstractPositionalMarkup
,AggregatableAnimationElement
,AnimationStaticLocationProvider
,HasLevel
,IMarkupLibraryDescriptor
,INetworkMarkupElement
,INode<ConveyorNode<?>,
,ConveyorPath<?>> com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T>
,com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
,SVGElement
,UsdElement
,Serializable
public class ConveyorCustomStation<T extends Agent> extends ConveyorNode<T> implements com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T>
Custom station is the space markup element used in material handling models.
It defines a station / working zone where material items are processed.
The process is not set up in this block, you should define it on your own ( Process Modeling Library and Material Handling Library blocks).
If the processing can be defined simply as a delay for the specified time, use the Station element instead.
Custom station is a part of a conveyor network. Custom station can act as a transit point in a conveyor network, any number of conveyors can lead to/from the custom station. It can also be a destination for material items transportation defined by the Convey block.
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ConveyorCustomStation() | |
ConveyorCustomStation |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
ConveyorCustomStation |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method | Description |
---|---|---|
void | addVertex |
Add vertex to build the 2D polygon that will represent this markup.
|
ConveyorCustomStationAgentLocation | agentLocation | |
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
Point | getCenter() |
Returns the point at the center of this markup
|
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
Position | getPosition |
Returns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1). |
double | getTransferDistance | |
void | onEnter | |
Point | randomPointInside |
Returns the randomly chosen point inside/along the given space markup element.
|
void | setCenter |
Deprecated.
|
addConnection, getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNetwork, getOutgoingPaths, getTransferPositionByPercent, getX, getXYZ, getY, getZ, postInitialize, setFillColor, setFillColor, setLineColor, setLineColor, setXYZ
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
getMarkup, setMarkup
public ConveyorCustomStation()
@Deprecated public ConveyorCustomStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-
@AnyLogicInternalAPI @Deprecated @SafeVarargs public ConveyorCustomStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Paint fillColor, Paint lineColor, com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T> descriptor, PathEnd<ConveyorPath<?>>... pathEnds)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-x
-y
-z
-dx
-dy
-fillColor
-lineColor
-descriptor
-pathEnds
-
public void addVertex(double x, double y)
Add vertex to build the 2D polygon that will represent this markup. The markup should be uninitialized
- Parameters:
x
- x coordinate of the point to be addedy
- y coordinate of the point to be added
public Point getCenter()
Returns the point at the center of this markup
- Returns:
- the point at the center of this markup
@Deprecated public void setCenter(Point point)
Deprecated.
@AnyLogicInternalAPI public double getTransferDistance(ConveyorPath<?> path1, ConveyorPath<?> path2)
- Specified by:
getTransferDistance
in interfaceINode<ConveyorNode<?>,
ConveyorPath<?>>
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.- Specified by:
getNearestPoint
in interfaceINetworkMarkupElement
- Overrides:
getNearestPoint
in classConveyorNode<T extends Agent>
- 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.
- Specified by:
randomPointInside
in interfaceINetworkMarkupElement
- Overrides:
randomPointInside
in classConveyorNode<T extends Agent>
- Parameters:
rng
- the random number generator.out
- output object to write to, may benull
- Returns:
- the randomly chosen point
public Position getPosition(int index, int totalNumber, Position out)
Description copied from interface:
AnimationStaticLocationProvider
Returns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
- Specified by:
getPosition
in interfaceAnimationStaticLocationProvider
- Overrides:
getPosition
in classConveyorNode<T extends Agent>
- Parameters:
index
- the index of some item positions, should be not negative and less thantotalNumber
totalNumber
- the total number of item positions, should be positiveout
- output object to write to, may benull
- Returns:
- the Position object with coordinates of the requested item position
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
- Overrides:
contains
in classConveyorNode<T extends Agent>
- 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
public ConveyorCustomStationAgentLocation agentLocation(T agent)
public void onEnter(T agent)