AnyLogic
Expand
Font size

Class ConveyorSimpleStation<T extends Agent>

All Implemented Interfaces:
IMaintenanceable, AggregatableAnimationElement, HasLevel, IMaintenanceableMarkup, IMarkupLibraryDescriptor, INetworkMarkupElement, com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<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 ConveyorSimpleStation<T extends Agent>
extends ConveyorStation<T>
implements com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T>, IMaintenanceableMarkup
Use the Station space markup element to draw a simple processing station on a conveyor.

The station can process more than 1 material item at a time. The number of items to process is defined in the Capacity parameter. If two or more material items must be processed simultaneously, the station will wait until the required number of agents arrives.

The time required to process the specified number of material items is defined by the Delay parameter.

See Also:
Serialized Form

Constructor Summary

ConstructorDescription
ConveyorSimpleStation(ConveyorPath<? extends T> conveyor) 
ConveyorSimpleStation(ConveyorPath<? extends T> conveyor, ShapeDrawMode drawMode, boolean isPublic, double offset, double lengthInMeters)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
ConveyorSimpleStation(ConveyorPath<? extends T> conveyor, ShapeDrawMode drawMode, boolean isPublic, double offsetInPixels, double lengthInMeters, Paint fillColor, Paint lineColor, com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T> descriptor)
Deprecated.
deprecated in version 8.4, will be removed in the future releases

Method Summary

Modifier and TypeMethodDescription
booleancontains(Agent agent)
Returns true if the given agent (material item) is inside the station, returns false otherwise.
voidfail()
Initiates station failure.
TgetAgent(int index)
Returns the agent (material item) that is currently located in the station
List<T>getAgents()
Returns the list of agents (material items) that are currently located in the station, returns null if none.
intgetCapacity()
Returns the number of agents (material items) that may be processed by the station.
ConveyorSimpleStationDelayTypegetDelayType() 
IDowntime<?>[]getDowntimeBlocks() 
ColorgetFillColor()
Returns fill color of this element
TexturegetFillTexture()
Returns fill texture of this element
com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T>getLibraryDescriptor() 
ColorgetLineColor()
Returns line color of this element
TexturegetLineTexture()
Returns line texture of this element
ConveyorSimpleStationLoadingModegetLoadingMode() 
ConveyorSimpleStationProcessingModegetProcessingMode() 
intgetQuantity()
Deprecated.
the method may be removed in next release, use getCapacity() instead
booleangetResourceChoiceCondition(T agent, List<T> allAgents, Agent unit, Object pool) 
ObjectgetResourceDestinationType()
Returns the type of destination the resources are sent to.
ConveyorSimpleStationStategetState() 
doublegetStatisticsStartTime() 
booleangetTaskMayPreemptOtherTasks() 
booleanisCustomizeResourceChoice() 
booleanisFailed()
Returns true if the station failed (broke down) and is not operating, returns false otherwise.
booleanisMaintenanceActive(IDowntime<?> block) 
booleanisProcessing()
Returns true if the station is processing agents (material items), returns false otherwise.
booleanisProcessing(Agent agent)
Returns true if the station is processing the agent (material item), returns false otherwise.
booleanisSeizeFromOnePool()
Returns true if the station will be using resource units of the same pool, returns false otherwise.
booleanisUseResources()
Returns true if the station is using resource units, returns false otherwise.
doublemeanStateTime(ConveyorSimpleStationState state, TimeUnits units) 
booleanmovingGoHome(T agent, List<T> allAgents, Agent unit) 
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.
voidonProcessFinished(T agent, List<T> allAgents)
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.
voidonProcessStarted(T agent, List<T> allAgents)
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.
voidonTaskResumed(T agent, List<T> allAgents, Agent unit) 
voidonTaskSuspended(T agent, List<T> allAgents, Agent unit) 
voidonTaskTerminated(T agent, List<T> allAgents, Agent unit) 
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.
doublepriority(T agent, List<T> allAgents) 
doubleprocessTime(T agent, List<T> allAgents, TimeUnits units)
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.

Returns delay for the given agent(s)
booleanremoveAgent(Agent agent)
Removes the given agent from the station.
voidrepair()
Repairs station, makes it available again.
voidresetStats() 
AttractorresourceDestinationAttractor(T agent, List<T> allAgents, Agent unit) 
INode<?,?>resourceDestinationNode(T agent, List<T> allAgents, Agent unit) 
doubleresourceDestinationX(T agent, List<T> allAgents, Agent unit) 
doubleresourceDestinationY(T agent, List<T> allAgents, Agent unit) 
doubleresourceDestinationZ(T agent, List<T> allAgents, Agent unit) 
ObjectresourcePool(T agent, List<T> allAgents) 
intresourceQuantity(T agent, List<T> allAgents) 
Object[][]resourceSets(T agent, List<T> allAgents) 
voidrestartMaintenanceTriggers(IDowntime<?> block) 
booleansendResources(T agent, List<T> allAgents, Agent unit) 
voidsetCapacity(int capacity)
Sets the number of agents (material items) that may be processed by the station.
voidsetDelayType(ConveyorSimpleStationDelayType type) 
voidsetDowntimeBlocks(IDowntime<?>[] downtimeBlocks) 
voidsetFillColor(Paint fillColor)
Sets the fill color of this element
voidsetLineColor(Paint lineColor)
Sets the line color of this element
voidsetLoadingMode(ConveyorSimpleStationLoadingMode mode) 
voidsetProcessingMode(ConveyorSimpleStationProcessingMode mode)
Cannot be changed in runtime
voidsetQuantity(int quantity)
Deprecated.
the method may be removed in next release, use #setCapacity() instead
voidsetResourceDestinationType(Object resourceDestinationType) 
voidsetSeizeFromOnePool(boolean seizeFromOnePool) 
voidsetTaskMayPreemptOtherTasks(boolean value) 
voidsetUseResources(boolean useResources) 
intsize()
Returns the current number of agents (material items) inside the station
voidstartMaintenanceManually(IDowntime<?> block) 
voidstopMaintenanceManually(IDowntime<?> block) 
voidstopProcess()
Stops the station when called.
voidstopProcess(Agent agent)
Stops processing of specified agent.
TaskPreemptionPolicytaskPreemptionPolicy(T agent, List<T> allAgents) 
doubletotalStateTime(ConveyorSimpleStationState state, TimeUnits units) 

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

contains, getLength, getNearestPoint, randomPointInside, setLength, setNetwork

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

getConveyor, getOffset, getOffset, setConveyor, setOffset, setOffset

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

getLevel, getNetwork

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.AggregatableAnimationElement

postInitialize

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

error, getName

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

Constructor Details

ConveyorSimpleStation

public ConveyorSimpleStation(ConveyorPath<? extends T> conveyor)

ConveyorSimpleStation

@Deprecated
public ConveyorSimpleStation(ConveyorPath<? extends T> conveyor,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double offset,
 double lengthInMeters)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
conveyor -
drawMode -
isPublic -
offset -
lengthInMeters -

ConveyorSimpleStation

@AnyLogicInternalAPI
@Deprecated
public ConveyorSimpleStation(ConveyorPath<? extends T> conveyor,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double offsetInPixels,
 double lengthInMeters,
 Paint fillColor,
 Paint lineColor,
 com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T> descriptor)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Constructor
Parameters:
conveyor - the conveyor
drawMode -
isPublic -
offsetInPixels - offset measured from the beginning of conveyor to the end of this station, in pixels.
lengthInMeters - the length of this station in meters.
descriptor -

Method Details

getLineColor

public Color getLineColor()
Returns line color of this element
Returns:
line color of this element

getLineTexture

public Texture getLineTexture()
Returns line texture of this element
Returns:
line texture of this element

setLineColor

public void setLineColor(Paint lineColor)
Sets the line color of this element
Parameters:
lineColor - color

getFillColor

public Color getFillColor()
Returns fill color of this element
Returns:
fill color of this element

getFillTexture

public Texture getFillTexture()
Returns fill texture of this element
Returns:
fill texture of this element

setFillColor

public void setFillColor(Paint fillColor)
Sets the fill color of this element
Parameters:
fillColor - color

getLibraryDescriptor

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

getCapacity

public int getCapacity()
Returns the number of agents (material items) that may be processed by the station.
Specified by:
getCapacity in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:
the number of agents (material items) that may be processed by the station.

setCapacity

public void setCapacity(int capacity)
Sets the number of agents (material items) that may be processed by the station.
Specified by:
setCapacity in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Parameters:
capacity - - the number of agents (material items) that may be processed by the station.

getQuantity

@Deprecated
public int getQuantity()
Deprecated.
the method may be removed in next release, use getCapacity() instead
Returns the number of agents (material items) required to start the processing.
Returns:
the number of agents (material items) required to start the processing.

setQuantity

@Deprecated
public void setQuantity(int quantity)
Deprecated.
the method may be removed in next release, use #setCapacity() instead
Sets the number of agents (material items) that must be processed simultaneously.
Parameters:
quantity - - the number of agents (material items).

getState

public ConveyorSimpleStationState getState()
Specified by:
getState in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getLoadingMode

public ConveyorSimpleStationLoadingMode getLoadingMode()
Specified by:
getLoadingMode in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

setLoadingMode

public void setLoadingMode(ConveyorSimpleStationLoadingMode mode)
Specified by:
setLoadingMode in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getProcessingMode

public ConveyorSimpleStationProcessingMode getProcessingMode()
Specified by:
getProcessingMode in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

setProcessingMode

public void setProcessingMode(ConveyorSimpleStationProcessingMode mode)
Cannot be changed in runtime
Specified by:
setProcessingMode in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getDelayType

public ConveyorSimpleStationDelayType getDelayType()
Specified by:
getDelayType in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

setDelayType

public void setDelayType(ConveyorSimpleStationDelayType type)
Specified by:
setDelayType in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

stopProcess

public void stopProcess()
Stops the station when called.
Specified by:
stopProcess in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

stopProcess

public void stopProcess(Agent agent)
Stops processing of specified agent.
Note, this method can only be called when the station is in the SIMPLE_STATION_PROCESSING_WHEN_AGENT_ENTERS mode. If the station is in the other processing mode, use stopProcess() instead.
Specified by:
stopProcess in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Parameters:
agent - an agent that is currently processing by station

isProcessing

public boolean isProcessing()
Returns true if the station is processing agents (material items), returns false otherwise.
Specified by:
isProcessing in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:
true if the station is processing agents (material items), returns false otherwise.

isProcessing

public boolean isProcessing(Agent agent)
Returns true if the station is processing the agent (material item), returns false otherwise.
Specified by:
isProcessing in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:
true if the station is processing the agent (material item), returns false otherwise.

processTime

@AnyLogicInternalCodegenAPI
public double processTime(T agent,
 List<T> allAgents,
 TimeUnits units)
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.

Returns delay for the given agent(s)
Specified by:
processTime in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Parameters:
agent - the agent if this station has only one agent. Otherwise - the first (nearest to the exit) agent.
allAgents - list of agents in this station, sorted: 0th element is the nearest to the exit.
units - requested units of the delay value
Returns:
delay timeout in the given units

onProcessStarted

@AnyLogicInternalCodegenAPI
public void onProcessStarted(T agent,
 List<T> allAgents)
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:
onProcessStarted in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Parameters:
agent - the agent if this station has only one agent. Otherwise - the first (nearest to the exit) agent.
allAgents - list of agents in this station, sorted: 0th element is the nearest to the exit.

onProcessFinished

@AnyLogicInternalCodegenAPI
public void onProcessFinished(T agent,
 List<T> allAgents)
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:
onProcessFinished in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Parameters:
agent - the agent if this station has only one agent. Otherwise - the first (nearest to the exit) agent.
allAgents - list of agents in this station, sorted: 0th element is the nearest to the exit.

size

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

getAgent

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

getAgents

public List<T> getAgents()
Returns the list of agents (material items) that are currently located in the station, returns null if none.
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 if the given agent (material item) is inside the station, returns false otherwise.
Specified by:
contains in interface com.anylogic.engine.markup.material_handling.IMaterialPointLocation<T extends Agent>
Returns:
true if the given agent (material item) is inside the station, returns false otherwise.

removeAgent

public boolean removeAgent(Agent agent)
Removes the given agent from the station. The agent will be removed only if it is currently located inside the station.
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 station.
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 station 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 station failed (broke down) and is not operating, returns false otherwise.

fail

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

repair

public void repair()
Repairs station, makes it available again. Resumes station processing.
Specified by:
repair in interface com.anylogic.engine.markup.material_handling.IMaterialFallible

isUseResources

public boolean isUseResources()
Returns true if the station is using resource units, returns false otherwise.
Specified by:
isUseResources in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:
true if the station is using resource units, returns false otherwise.

setUseResources

public void setUseResources(boolean useResources)
Specified by:
setUseResources in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

isSeizeFromOnePool

public boolean isSeizeFromOnePool()
Returns true if the station will be using resource units of the same pool, returns false otherwise.
Specified by:
isSeizeFromOnePool in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:
true if the station will be using resource units of the same pool, returns false otherwise.

setSeizeFromOnePool

public void setSeizeFromOnePool(boolean seizeFromOnePool)
Specified by:
setSeizeFromOnePool in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceSets

public Object[][] resourceSets(T agent,
 List<T> allAgents)
Specified by:
resourceSets in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourcePool

public Object resourcePool(T agent,
 List<T> allAgents)
Specified by:
resourcePool in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceQuantity

public int resourceQuantity(T agent,
 List<T> allAgents)
Specified by:
resourceQuantity in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

sendResources

public boolean sendResources(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
sendResources in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getResourceDestinationType

public Object getResourceDestinationType()
Returns the type of destination the resources are sent to.

Valid values:

  • Seize.DestinationType.DEST_NODE - the node the resources will be sent to.
  • Seize.DestinationType.DEST_ATTRACTOR - the attractor the resources will be sent to.
  • Seize.DestinationType.DEST_XYZ - the coordinates the resources will be sent to.
Specified by:
getResourceDestinationType in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>
Returns:

setResourceDestinationType

public void setResourceDestinationType(Object resourceDestinationType)
Specified by:
setResourceDestinationType in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceDestinationNode

public INode<?,?> resourceDestinationNode(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
resourceDestinationNode in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceDestinationAttractor

public Attractor resourceDestinationAttractor(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
resourceDestinationAttractor in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceDestinationX

public double resourceDestinationX(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
resourceDestinationX in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceDestinationY

public double resourceDestinationY(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
resourceDestinationY in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resourceDestinationZ

public double resourceDestinationZ(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
resourceDestinationZ in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

movingGoHome

public boolean movingGoHome(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
movingGoHome in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

isCustomizeResourceChoice

public boolean isCustomizeResourceChoice()
Specified by:
isCustomizeResourceChoice in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getResourceChoiceCondition

public boolean getResourceChoiceCondition(T agent,
 List<T> allAgents,
 Agent unit,
 Object pool)
Specified by:
getResourceChoiceCondition in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getStatisticsStartTime

@AnyLogicInternalAPI
public double getStatisticsStartTime()
Specified by:
getStatisticsStartTime in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

resetStats

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

totalStateTime

public double totalStateTime(ConveyorSimpleStationState state,
 TimeUnits units)
Specified by:
totalStateTime in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

meanStateTime

public double meanStateTime(ConveyorSimpleStationState state,
 TimeUnits units)
Specified by:
meanStateTime in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

priority

public double priority(T agent,
 List<T> allAgents)
Specified by:
priority in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getTaskMayPreemptOtherTasks

public boolean getTaskMayPreemptOtherTasks()
Specified by:
getTaskMayPreemptOtherTasks in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

setTaskMayPreemptOtherTasks

public void setTaskMayPreemptOtherTasks(boolean value)
Specified by:
setTaskMayPreemptOtherTasks in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

taskPreemptionPolicy

public TaskPreemptionPolicy taskPreemptionPolicy(T agent,
 List<T> allAgents)
Specified by:
taskPreemptionPolicy in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

onTaskSuspended

public void onTaskSuspended(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
onTaskSuspended in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

onTaskResumed

public void onTaskResumed(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
onTaskResumed in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

onTaskTerminated

public void onTaskTerminated(T agent,
 List<T> allAgents,
 Agent unit)
Specified by:
onTaskTerminated in interface com.anylogic.engine.markup.material_handling.IConveyorSimpleStationDescriptor<T extends Agent>

getDowntimeBlocks

public IDowntime<?>[] getDowntimeBlocks()
Specified by:
getDowntimeBlocks in interface IMaintenanceableMarkup

setDowntimeBlocks

public void setDowntimeBlocks(IDowntime<?>[] downtimeBlocks)

restartMaintenanceTriggers

@AnyLogicInternalAPI
public void restartMaintenanceTriggers(IDowntime<?> block)
Specified by:
restartMaintenanceTriggers in interface IMaintenanceableMarkup

startMaintenanceManually

@AnyLogicInternalAPI
public void startMaintenanceManually(IDowntime<?> block)
Specified by:
startMaintenanceManually in interface IMaintenanceableMarkup

stopMaintenanceManually

@AnyLogicInternalAPI
public void stopMaintenanceManually(IDowntime<?> block)
Specified by:
stopMaintenanceManually in interface IMaintenanceableMarkup

isMaintenanceActive

@AnyLogicInternalAPI
public boolean isMaintenanceActive(IDowntime<?> block)
Specified by:
isMaintenanceActive in interface IMaintenanceableMarkup