Package com.anylogic.engine.markup
- 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.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
- Constructor Detail
- Method Detail
- isTakeSpeedOfConnectedConveyors
- setTakeSpeedOfConnectedConveyors
- getLibraryDescriptor
- getSpeed
- setSpeed
- setSwitchingDelay
- getSwitchingDelay
- size
- getAgent
- getAgents
- contains
- removeAgent
- onLeadingEdgeEnter
- onTrailingEdgeEnter
- onLeadingEdgeExit
- onTrailingEdgeExit
- isFailed
- fail
- repair
- onFailed
- onRepaired
- recalculatePriorities
- 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.ConveyorTransferTable<T>
- 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
,java.io.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
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,
java.awt.Paint fillColor,
java.awt.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. |
Constructor | Description |
---|
boolean |
contains(Agent agent) |
Returns true is the given agent (material item) is on the transfer table, returns false otherwise.
|
void |
fail() |
Initiates transfer table failure.
|
T |
getAgent(int index) |
Returns the agent (material item) that is currently located on the transfer table
|
java.util.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() |
|
double |
getSpeed(SpeedUnits units) |
Returns the speed of the transfer table in the specified speed units.
|
double |
getSwitchingDelay(TimeUnits units) |
Returns the time (in the specified time units) required to turn the transfer table towards another conveyor.
|
boolean |
isFailed() |
Returns true if the transfer table failed (broke down) and is not operating, returns false otherwise.
|
boolean |
isObstacle() |
Returns true if this transfer table is considered an obstacle by transporters moving in free space mode.
|
boolean |
isTakeSpeedOfConnectedConveyors() |
|
void |
onFailed() |
|
void |
onLeadingEdgeEnter(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. |
void |
onLeadingEdgeExit(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. |
void |
onRepaired() |
|
void |
onTrailingEdgeEnter(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. |
void |
onTrailingEdgeExit(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. |
void |
recalculatePriorities() |
|
boolean |
removeAgent(Agent agent) |
Removes the given agent from the transfer table.
|
void |
repair() |
Repairs the transfer table, makes it available again.
|
void |
setObstacle(boolean isObstacle) |
Sets this transfer table as an obstacle for transporters moving in free space mode.
|
void |
setSpeed(double speed,
SpeedUnits units) |
Sets the new speed of the transfer table in the specified speed units.
|
void |
setSwitchingDelay(double delay,
TimeUnits units) |
Sets the time (in the specified time units) required to turn the transfer table towards another conveyor.
|
void |
setTakeSpeedOfConnectedConveyors(boolean takeSpeedOfConnectedConveyors) |
|
int |
size() |
Returns the current number of agents (material items) on the transfer table.
|
Modifier and Type | Method | Description |
---|
getTransferDistance, getTransition, getTransitions
addConnection, contains, getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNearestPoint, getNetwork, getOutgoingPaths, getPosition, getTransferPositionByPercent, getX, getXYZ, getY, getZ, postInitialize, 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
getSpace
Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
getMarkup, setMarkup
getSpace, randomPointInside, randomPointInside, randomPointInside
getName
public 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
-
@AnyLogicInternalCodegenAPI @SafeVarargs public ConveyorTransferTable(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.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.
it may be removed/renamed in future. It is public due to technical reasons.
public boolean isTakeSpeedOfConnectedConveyors()
- Specified by:
isTakeSpeedOfConnectedConveyors
in interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
- Specified by:
isTakeSpeedOfConnectedConveyors
in classConveyorTransitionalNode<T extends Agent>
public void setTakeSpeedOfConnectedConveyors(boolean takeSpeedOfConnectedConveyors)
- Specified by:
setTakeSpeedOfConnectedConveyors
in interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T> getLibraryDescriptor()
public double getSpeed(SpeedUnits units)
Returns the speed of the transfer table in the specified speed units.
- Specified by:
getSpeed
in interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
- Specified by:
getSpeed
in classConveyorTransitionalNode<T extends Agent>
- Parameters:
units
- - a constant defining the speed units- Returns:
- the speed of the transfer table
public void setSpeed(double speed, SpeedUnits units)
Sets the new speed of the transfer table in the specified speed units.
- Specified by:
setSpeed
in interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
- Parameters:
speed
- - a new speed valueunits
- - a constant defining the speed units
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 interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
- Parameters:
delay
- - a new time valueunits
- - a constant defining the time units
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 interfacecom.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
public int size()
Returns the current number of agents (material items) on the transfer table.
- Specified by:
size
in interfacecom.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
- Returns:
- the current number of agents (material items) on the transfer table
public T getAgent(int index)
Returns the agent (material item) that is currently located on the transfer table
- Specified by:
getAgent
in interfacecom.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
- Returns:
- the agent
public java.util.List<T> getAgents()
Returns the list of agents (material items) that are currently located on the transfer table.
- Specified by:
getAgents
in interfacecom.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
- Returns:
- the list of agents
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 interfacecom.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
- Returns:
- true is the given agent is on the transfer table, returns false otherwise
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 interfacecom.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.
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.
- Specified by:
onLeadingEdgeEnter
in interfacecom.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
- Parameters:
agent
- the agent.
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.
- Specified by:
onTrailingEdgeEnter
in interfacecom.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
- Parameters:
agent
- the agent.
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.
- Specified by:
onLeadingEdgeExit
in interfacecom.anylogic.engine.markup.material_handling.IMaterialAreaLocation<T extends Agent>
- Parameters:
agent
- the agent.
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.
- Specified by:
onTrailingEdgeExit
in interfacecom.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
- Parameters:
agent
- the agent.
public boolean isFailed()
Returns true if the transfer table 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 transfer table failed (broke down) and is not operating, returns false otherwise.
public void fail()
Initiates transfer table failure. The transfer table stops.
- Specified by:
fail
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void repair()
Repairs the transfer table, makes it available again.
- Specified by:
repair
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void onFailed()
- Specified by:
onFailed
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void onRepaired()
- Specified by:
onRepaired
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void recalculatePriorities()
- Specified by:
recalculatePriorities
in interfacecom.anylogic.engine.markup.material_handling.IConveyorTransferTableDescriptor<T extends Agent>
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
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.
-
How can we improve this article?
-