AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, AnimationStaticLocationProvider, HasLevel, IMarkupLibraryDescriptor, INetworkMarkupElement, INode<ConveyorNode<?>,ConveyorPath<?>>, com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<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, Serializable

public class ConveyorTransferTable<T extends Agent>
extends ConveyorTransitionalNode<T>
implements com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T>
Transfer table is the space markup element that is used to define transfer tables in the material handling models. Agents (material items) passing through it keep their current orientation on in space. Once placed on a conveyor, the transfer table divides it into two independent conveyors, working in the same conveyor network. Transfer table may connect up to 4 conveyors at right angle (90°).
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
ConveyorTransferTable() 
ConveyorTransferTable(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
ConveyorTransferTable(Agent owner, ShapeDrawMode drawMode, boolean isPublic, boolean isObstacle, double x, double y, double z, Paint fillColor, Paint lineColor, com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<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.

Method Summary

Modifier and TypeMethodDescription
booleancontains(Agent agent)
Returns true is the given agent (material item) is on the transfer table, returns false otherwise.
voidfail()
Initiates transfer table failure.
TgetAgent(int index)
Returns the agent (material item) that is currently located on the transfer table
List<T>getAgents()
Returns the list of agents (material items) that are currently located on the transfer table.
com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T>getLibraryDescriptor() 
doublegetSpeed(SpeedUnits units)
Returns the speed of the transfer table in the specified speed units.
doublegetSwitchingDelay(TimeUnits units)
Returns the time (in the specified time units) required to turn the transfer table towards another conveyor.
booleanisFailed()
Returns true if the transfer table failed (broke down) and is not operating, returns false otherwise.
booleanisObstacle()
Returns true if this transfer table is considered an obstacle by transporters moving in free space mode.
booleanisTakeSpeedOfConnectedConveyors() 
voidonFailed() 
voidonLeadingEdgeEnter(T agent)
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.
voidonLeadingEdgeExit(T agent)
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.
voidonRepaired() 
voidonTrailingEdgeEnter(T agent)
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.
voidonTrailingEdgeExit(T agent)
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.
voidrecalculatePriorities() 
booleanremoveAgent(Agent agent)
Removes the given agent from the transfer table.
voidrepair()
Repairs the transfer table, makes it available again.
voidsetObstacle(boolean isObstacle)
Sets this transfer table as an obstacle for transporters moving in free space mode.
voidsetSpeed(double speed, SpeedUnits units)
Sets the new speed of the transfer table in the specified speed units.
voidsetSwitchingDelay(double delay, TimeUnits units)
Sets the time (in the specified time units) required to turn the transfer table towards another conveyor.
voidsetTakeSpeedOfConnectedConveyors(boolean takeSpeedOfConnectedConveyors) 
intsize()
Returns the current number of agents (material items) on the transfer table.

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

getTransferDistance, getTransition, getTransitions

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 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 Details

ConveyorTransferTable

public ConveyorTransferTable()

ConveyorTransferTable

@Deprecated
public ConveyorTransferTable(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -

ConveyorTransferTable

@AnyLogicInternalCodegenAPI
@SafeVarargs
public ConveyorTransferTable(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 boolean isObstacle,
 double x,
 double y,
 double z,
 Paint fillColor,
 Paint lineColor,
 com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<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.

Method Details

isTakeSpeedOfConnectedConveyors

public boolean isTakeSpeedOfConnectedConveyors()
Specified by:
isTakeSpeedOfConnectedConveyors in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
Specified by:
isTakeSpeedOfConnectedConveyors in class ConveyorTransitionalNode<T extends Agent>

setTakeSpeedOfConnectedConveyors

public void setTakeSpeedOfConnectedConveyors(boolean takeSpeedOfConnectedConveyors)
Specified by:
setTakeSpeedOfConnectedConveyors in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>

getLibraryDescriptor

@AnyLogicInternalAPI
public com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T> getLibraryDescriptor()

getSpeed

public double getSpeed(SpeedUnits units)
Returns the speed of the transfer table in the specified speed units.
Specified by:
getSpeed in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
Specified by:
getSpeed in class ConveyorTransitionalNode<T extends Agent>
Parameters:
units - - a constant defining the speed units
Returns:
the speed of the transfer table

setSpeed

public void setSpeed(double speed,
 SpeedUnits units)
Sets the new speed of the transfer table in the specified speed units.
Specified by:
setSpeed in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
Parameters:
speed - - a new speed value
units - - a constant defining the speed units

setSwitchingDelay

public void setSwitchingDelay(double delay,
 TimeUnits units)
Sets the time (in the specified time units) required to turn the transfer table towards another conveyor.
Specified by:
setSwitchingDelay in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
Parameters:
delay - - a new time value
units - - a constant defining the time units

getSwitchingDelay

public double getSwitchingDelay(TimeUnits units)
Returns the time (in the specified time units) required to turn the transfer table towards another conveyor.
Specified by:
getSwitchingDelay in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
Parameters:
units - - a constant defining the time units
Returns:
the time required to turn the transfer table towards another conveyor

size

public int size()
Returns the current number of agents (material items) on the transfer table.
Specified by:
size in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Returns:
the current number of agents (material items) on the transfer table

getAgent

public T getAgent(int index)
Returns the agent (material item) that is currently located on the transfer table
Specified by:
getAgent in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Returns:
the agent

getAgents

public List<T> getAgents()
Returns the list of agents (material items) that are currently located on the transfer table.
Specified by:
getAgents in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Returns:
the list of agents

contains

public boolean contains(Agent agent)
Returns true is the given agent (material item) is on the transfer table, returns false otherwise.
Specified by:
contains in interface com.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
Returns:
true is the given agent is on the transfer table, returns false otherwise

removeAgent

public boolean removeAgent(Agent agent)
Removes the given agent from the transfer table. The agent will be removed only if it is currently located on the transfer table.
Specified by:
removeAgent in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Parameters:
agent - - the agent (material item) to be removed from the transfer table.
Returns:
if the agent was removed successfully, returns true, otherwise returns false.

onLeadingEdgeEnter

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.
Specified by:
onLeadingEdgeEnter in interface com.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
Parameters:
agent - the agent.

onTrailingEdgeEnter

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.
Specified by:
onTrailingEdgeEnter in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Parameters:
agent - the agent.

onLeadingEdgeExit

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.
Specified by:
onLeadingEdgeExit in interface com.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
Parameters:
agent - the agent.

onTrailingEdgeExit

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.
Specified by:
onTrailingEdgeExit in interface com.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
Parameters:
agent - the agent.

isFailed

public boolean isFailed()
Returns true if the transfer table failed (broke down) and is not operating, returns false otherwise.
Specified by:
isFailed in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
Returns:
true if the transfer table failed (broke down) and is not operating, returns false otherwise.

fail

public void fail()
Initiates transfer table failure. The transfer table stops.
Specified by:
fail in interface com.anylogic.engine.markup.material_handling.IMaterialFallible

repair

public void repair()
Repairs the transfer table, makes it available again.
Specified by:
repair in interface com.anylogic.engine.markup.material_handling.IMaterialFallible

onFailed

public void onFailed()
Specified by:
onFailed in interface com.anylogic.engine.markup.material_handling.IMaterialFallible

onRepaired

public void onRepaired()
Specified by:
onRepaired in interface com.anylogic.engine.markup.material_handling.IMaterialFallible

recalculatePriorities

public void recalculatePriorities()
Specified by:
recalculatePriorities in interface com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>

isObstacle

public boolean isObstacle()
Returns true if this transfer table is considered an obstacle by transporters moving in free space mode. Otherwise, returns false.
Returns:
a flag that tells whether this transfer table is an obstacle or not

setObstacle

public void setObstacle(boolean isObstacle)
Sets this transfer table as an obstacle for transporters moving in free space mode. The table should be uninitialized
Parameters:
isObstacle - if true, the transfer table is set as an obstacle. Otherwise, not.