Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorTransitionalNode
- 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
- getLibraryDescriptor
- isTakeSpeedOfConnectedConveyors
- postInitialize
- getSpeed
- setSpeed
- setRotationSpeed
- getRotationSpeed
- setMode
- getMode
- angle
- orientation
- size
- getAgent
- getAgents
- contains
- removeAgent
- onLeadingEdgeEnter
- onTrailingEdgeEnter
- onLeadingEdgeExit
- onTrailingEdgeExit
- isFailed
- fail
- repair
- isObstacle
- setObstacle
- 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.ConveyorTransitionalNode<T>
- com.anylogic.engine.markup.ConveyorTurnStation<T>
- All Implemented Interfaces:
AbstractPositionalMarkup
,AggregatableAnimationElement
,AnimationStaticLocationProvider
,HasLevel
,IMarkupLibraryDescriptor
,INetworkMarkupElement
,INode<ConveyorNode<?>,
,ConveyorPath<?>> com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T>
,com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T>
,com.anylogic.engine.markup.material_handling.IMaterialFallible
,com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
,com.anylogic.engine.markup.material_handling.IMaterialPointLocation<T>
,SVGElement
,UsdElement
,Serializable
public class ConveyorTurnStation<T extends Agent> extends ConveyorTransitionalNode<T> implements com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T>
Turn station is the graphical space markup element that is used to define turn stations.
Turn station rotates agents (material items) passing through it. Items can be rotated by any angle divisible by 90°.
Once placed on a conveyor, the turn station divides it into two independent conveyors, working in the same conveyor network. Turn station can connect only two conveyors forming a straight line.
Turn station has its own transportation speed (it may differ from the speed of the connected conveyors).
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ConveyorTurnStation() | |
ConveyorTurnStation |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
ConveyorTurnStation |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. |
Modifier and Type | Method | Description |
---|---|---|
double | angle | |
boolean | contains |
Returns true is the given agent (material item) is on the turn station, returns false otherwise.
|
void | fail() |
Initiates turn station failure.
|
T | getAgent |
Returns the agent (material item) that is currently located on the turn station.
|
List<T> | getAgents() |
Returns the list of agents (material items) that are currently located on the turn station.
|
com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T> | getLibraryDescriptor() | |
ConveyorTurnStationMode | getMode() |
Returns the turn station's rotation mode.
|
double | getRotationSpeed |
Returns the turn station's rotation speed (in the specified rotation units).
|
double | getSpeed |
Returns the speed of the turn station in the specified speed units.
|
boolean | isFailed() |
Returns true if the turn station failed (broke down) and is not operating, returns false otherwise.
|
boolean | isObstacle() |
Returns true if this turnstation is considered an obstacle by transporters moving in free space mode.
|
boolean | isTakeSpeedOfConnectedConveyors() | |
void | onLeadingEdgeEnter |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. Callback action. |
void | onLeadingEdgeExit |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. Callback action. |
void | onTrailingEdgeEnter |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. Callback action. |
void | onTrailingEdgeExit |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. Callback action. |
AgentOrientation | orientation | |
void | postInitialize() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
boolean | removeAgent |
Removes the given agent from the turn station.
|
void | repair() |
Repairs the turn station, makes it available again.
|
void | setMode |
Sets the turn station's rotation mode.
|
void | setObstacle |
Sets this turnstation as an obstacle for transporters moving in free space mode.
|
void | setRotationSpeed |
Sets the turn station's rotation speed (in the specified speed units) when switching from one conveyor to another.
|
void | setSpeed |
Sets the new speed of the turn station in the specified speed units.
|
int | size() |
Returns the current number of agents (material items) on the turn station.
|
addConnection, contains, getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNearestPoint, getNetwork, getOutgoingPaths, getPosition, getTransferPositionByPercent, getX, getXYZ, getY, getZ, randomPointInside, 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 ConveyorTurnStation()
@Deprecated public ConveyorTurnStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-
@AnyLogicInternalCodegenAPI @SafeVarargs public ConveyorTurnStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic, boolean isObstacle, double x, double y, double z, Paint fillColor, Paint lineColor, com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T> descriptor, PathEnd<ConveyorPath<?>>... pathEnds)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
it may be removed/renamed in future. It is public due to technical reasons.
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T> getLibraryDescriptor()
@AnyLogicInternalAPI public boolean isTakeSpeedOfConnectedConveyors()
- Specified by:
isTakeSpeedOfConnectedConveyors
in classConveyorTransitionalNode<T extends Agent>
@AnyLogicInternalAPI public void postInitialize()
Description copied from interface:
AggregatableAnimationElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
postInitialize
in interfaceAggregatableAnimationElement
- Overrides:
postInitialize
in classConveyorNode<T extends Agent>
public double getSpeed(SpeedUnits units)
Returns the speed of the turn station in the specified speed units.
public void setSpeed(double speed, SpeedUnits units)
Sets the new speed of the turn station in the specified speed units.
public void setRotationSpeed(double rotationSpeed, RotationSpeedUnits units)
Sets the turn station's rotation speed (in the specified speed units) when switching from one conveyor to another.
public double getRotationSpeed(RotationSpeedUnits units)
Returns the turn station's rotation speed (in the specified rotation units).
public void setMode(ConveyorTurnStationMode mode)
Sets the turn station's rotation mode.
Valid values:
- TURN_STATION_MODE_ANGLE - the agent (material item) is rotated by the specified angle.
- TURN_STATION_MODE_ORIENTATION - the agent's orientation is changed, making one of its four sides face the conveyor's travel direction.
public ConveyorTurnStationMode getMode()
Returns the turn station's rotation mode.
@AnyLogicInternalCodegenAPI public double angle(T agent, AngleUnits units)
@AnyLogicInternalCodegenAPI public AgentOrientation orientation(T agent)
public int size()
Returns the current number of agents (material items) on the turn station.
public T getAgent(int index)
Returns the agent (material item) that is currently located on the turn station.
public List<T> getAgents()
Returns the list of agents (material items) that are currently located on the turn station.
public boolean contains(Agent agent)
Returns true is the given agent (material item) is on the turn station, returns false otherwise.
public boolean removeAgent(Agent agent)
Removes the given agent from the turn station. The agent will be removed only if it is currently located on the turn station.
public void onLeadingEdgeEnter(T agent)
Description copied from interface:
com.anylogic.engine.markup.material_handling.IMaterialPointLocation
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
public void onTrailingEdgeEnter(T agent)
Description copied from interface:
com.anylogic.engine.markup.material_handling.IMaterialAreaLocation
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
public void onLeadingEdgeExit(T agent)
Description copied from interface:
com.anylogic.engine.markup.material_handling.IMaterialAreaLocation
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
public void onTrailingEdgeExit(T agent)
Description copied from interface:
com.anylogic.engine.markup.material_handling.IMaterialPointLocation
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
it may be removed/renamed in future. It is public due to technical reasons.
Callback action.
public boolean isFailed()
Returns true if the turn station failed (broke down) and is not operating, returns false otherwise.
- Specified by:
isFailed
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
- Returns:
- true if the turn station failed (broke down) and is not operating, returns false otherwise.
public void fail()
Initiates turn station failure. The turn station stops.
- Specified by:
fail
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void repair()
Repairs the turn station, makes it available again.
- Specified by:
repair
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public boolean isObstacle()
Returns true if this turnstation is considered an obstacle by transporters moving in free space mode.
Otherwise, returns false.
- Returns:
- a flag that tells whether this turnstation is an obstacle or not
public void setObstacle(boolean isObstacle)
Sets this turnstation as an obstacle for transporters moving in free space mode.
The station should be uninitialized.
- Parameters:
isObstacle
- if true, the turnstation is set as an obstacle. Otherwise, not.