public class ConveyorTurnStation<T extends Agent> extends ConveyorNode<T> implements com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T>
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).
Constructor and Description |
---|
ConveyorTurnStation() |
ConveyorTurnStation(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
ConveyorTurnStation(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
boolean isObstacle,
double x,
double y,
double z,
java.awt.Paint fillColor,
java.awt.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.
|
Modifier and Type | Method and Description |
---|---|
double |
angle(T agent,
AngleUnits units) |
boolean |
contains(Agent agent)
Returns true is the given agent (material item) is on the turn station, returns false otherwise.
|
void |
fail()
Initiates turn station failure.
|
T |
getAgent(int index)
Returns the agent (material item) that is currently located on the turn station.
|
java.util.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(RotationSpeedUnits units)
Returns the turn station's rotation speed (in the specified rotation units).
|
double |
getSpeed(SpeedUnits units)
Returns the speed of the turn station in the specified speed units.
|
double |
getTransferDistance(ConveyorPath<?> path1,
ConveyorPath<?> path2) |
ConveyorPath<T> |
getTransition(ConveyorPath<?> path) |
java.util.List<? extends ConveyorPath<T>> |
getTransitions() |
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.
|
void |
onFailed() |
void |
onLeadingEdgeEnter(T agent)
This method is internal and shouldn't be called by user.
|
void |
onLeadingEdgeExit(T agent)
This method is internal and shouldn't be called by user.
|
void |
onRepaired() |
void |
onTrailingEdgeEnter(T agent)
This method is internal and shouldn't be called by user.
|
void |
onTrailingEdgeExit(T agent)
This method is internal and shouldn't be called by user.
|
AgentOrientation |
orientation(T agent) |
void |
postInitialize()
This method is internal and shouldn't be called by user.
|
boolean |
removeAgent(Agent agent)
Removes the given agent from the turn station.
|
void |
repair()
Repairs the turn station, makes it available again.
|
void |
setMode(ConveyorTurnStationMode mode)
Sets the turn station's rotation mode.
|
void |
setObstacle(boolean isObstacle)
Sets this turnstation as an obstacle for transporters moving in free space mode.
|
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.
|
void |
setSpeed(double speed,
SpeedUnits units)
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
getLevel, setNetwork
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarkup, setMarkup
getSpace, randomPointInside, randomPointInside, randomPointInside
getSpace
public ConveyorTurnStation()
@Deprecated public ConveyorTurnStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
owner
- drawMode
- isPublic
- @AnyLogicInternalCodegenAPI @SafeVarargs public ConveyorTurnStation(Agent owner, ShapeDrawMode drawMode, boolean isPublic, boolean isObstacle, double x, double y, double z, java.awt.Paint fillColor, java.awt.Paint lineColor, com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T> descriptor, PathEnd<ConveyorPath<?>>... pathEnds)
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.IConveyorTurnStationDescriptor<T> getLibraryDescriptor()
@AnyLogicInternalCodegenAPI public ConveyorPath<T> getTransition(ConveyorPath<?> path)
@AnyLogicInternalCodegenAPI public java.util.List<? extends ConveyorPath<T>> getTransitions()
@AnyLogicInternalAPI public void postInitialize()
AggregatableAnimationElement
postInitialize
in interface AggregatableAnimationElement
postInitialize
in class ConveyorNode<T extends Agent>
public double getTransferDistance(ConveyorPath<?> path1, ConveyorPath<?> path2)
getTransferDistance
in interface INode<ConveyorNode<?>,ConveyorPath<?>>
public double getSpeed(SpeedUnits units)
public void setSpeed(double speed, SpeedUnits units)
public void setRotationSpeed(double rotationSpeed, RotationSpeedUnits units)
public double getRotationSpeed(RotationSpeedUnits units)
public void setMode(ConveyorTurnStationMode mode)
Valid values:
public ConveyorTurnStationMode getMode()
@AnyLogicInternalCodegenAPI public double angle(T agent, AngleUnits units)
@AnyLogicInternalCodegenAPI public AgentOrientation orientation(T agent)
public int size()
public T getAgent(int index)
public java.util.List<T> getAgents()
public boolean contains(Agent agent)
public boolean removeAgent(Agent agent)
public void onLeadingEdgeEnter(T agent)
com.anylogic.engine.markup.material_handling.IMaterialPointLocation
public void onTrailingEdgeEnter(T agent)
com.anylogic.engine.markup.material_handling.IMaterialAreaLocation
public void onLeadingEdgeExit(T agent)
com.anylogic.engine.markup.material_handling.IMaterialAreaLocation
public void onTrailingEdgeExit(T agent)
com.anylogic.engine.markup.material_handling.IMaterialPointLocation
public boolean isFailed()
isFailed
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void fail()
fail
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void repair()
repair
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void onFailed()
onFailed
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void onRepaired()
onRepaired
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public boolean isObstacle()
public void setObstacle(boolean isObstacle)
isObstacle
- if true, the turnstation is set as an obstacle. Otherwise, not.Copyright © AnyLogic North America, LLC. All Rights Reserved.