AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, AnimationStaticLocationProvider, HasLevel, IMarkupLibraryDescriptor, INetworkMarkupElement, INode<ConveyorNode<?>,​ConveyorPath<?>>, com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T>, com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor, SVGElement, java.io.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 Summary

Constructors 
ConveyorCustomStation()  
ConveyorCustomStation​(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
ConveyorCustomStation​(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, java.awt.Paint fillColor, java.awt.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
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods 
void addVertex​(double x, double y)
Add vertex to build the 2D polygon that will represent this markup.
ConveyorCustomStationAgentLocation agentLocation​(T agent)  
boolean contains​(double px, double py)
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)
Point getCenter()
Returns the point at the center of this markup
double getNearestPoint​(Point givenPoint, Point out)
Calculates (using the output object) the point in this space markup element nearest to the given point.
Position getPosition​(int index, int totalNumber, Position out)
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​(ConveyorPath<?> path1, ConveyorPath<?> path2)  
void onEnter​(T agent)  
Point randomPointInside​(java.util.Random rng, Point out)
Returns the randomly chosen point inside/along the given space markup element.
void setCenter​(Point point)
Deprecated.
Modifier and Type Method Description

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

addConnection, getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNetwork, getOutgoingPaths, getTransferPositionByPercent, getX, getXYZ, getY, getZ, postInitialize, setFillColor, setFillColor, setLineColor, setLineColor, setXYZ

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

getLevel, setNetwork

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

error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

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

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider

getSpace

Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor

getMarkup, setMarkup

Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement

getSpace, randomPointInside, randomPointInside, randomPointInside

Methods inherited from interface com.anylogic.engine.markup.INode

getName

Constructor Detail

ConveyorCustomStation

public ConveyorCustomStation()

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 -

ConveyorCustomStation

@AnyLogicInternalAPI
@Deprecated
@SafeVarargs
public ConveyorCustomStation​(Agent owner,
                             ShapeDrawMode drawMode,
                             boolean isPublic,
                             double x,
                             double y,
                             double z,
                             double[] dx,
                             double[] dy,
                             java.awt.Paint fillColor,
                             java.awt.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 -

Method Detail

addVertex

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 added
y - y coordinate of the point to be added

getCenter

public Point getCenter()
Returns the point at the center of this markup
Returns:
the point at the center of this markup

setCenter

@Deprecated
public void setCenter​(Point point)
Deprecated.

getTransferDistance

@AnyLogicInternalAPI
public double getTransferDistance​(ConveyorPath<?> path1,
                                  ConveyorPath<?> path2)
Specified by:
getTransferDistance in interface INode<ConveyorNode<?>,​ConveyorPath<?>>

getNearestPoint

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 interface INetworkMarkupElement
Overrides:
getNearestPoint in class ConveyorNode<T extends Agent>
Parameters:
givenPoint - given point
out - the output point to write result to.
Returns:
the square of distance to the nearest point

randomPointInside

public Point randomPointInside​(java.util.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 interface INetworkMarkupElement
Overrides:
randomPointInside in class ConveyorNode<T extends Agent>
Parameters:
rng - the random number generator.
out - output object to write to, may be null
Returns:
the randomly chosen point

getPosition

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).
Specified by:
getPosition in interface AnimationStaticLocationProvider
Overrides:
getPosition in class ConveyorNode<T extends Agent>
Parameters:
index - the index of some item positions, should be not negative and less than totalNumber
totalNumber - the total number of item positions, should be positive
out - output object to write to, may be null
Returns:
the Position object with coordinates of the requested item position

contains

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 interface INetworkMarkupElement
Overrides:
contains in class ConveyorNode<T extends Agent>
Parameters:
px - the x coordinate relative to this shape's container
py - the y coordinate relative to this shape's container
Returns:
true if the shape contains the point with the given coordinates

agentLocation

public ConveyorCustomStationAgentLocation agentLocation​(T agent)
Specified by:
agentLocation in interface com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T extends Agent>

onEnter

public void onEnter​(T agent)
Specified by:
onEnter in interface com.anylogic.engine.markup.material_handling.IConveyorCustomStationDescriptor<T extends Agent>
How can we improve this article?