AnyLogic AnyLogic
Expand
Font size
All Superinterfaces:
java.io.Serializable

public interface ServiceDataSource<Q extends QueueUnit>
extends java.io.Serializable

Method Summary

All Methods Instance Methods Abstract Methods 
Q getClosestQueue​(ServiceUnit<Q> serviceUnit)  
Q getClosestQueueNotEmpty​(ServiceUnit<Q> serviceUnit)  
Q getLongestQueue​(ServiceUnit<Q> serviceUnit)  
java.util.List<Agent> getPeds​(Q queue)
Returns the list of agents (pedestrians) staying in the given queue
Q getShortestQueue​(Agent agent, boolean reverse)  
boolean isServiceSuspended​(ServiceUnit<Q> serviceUnit)  
void onQueueCapacityChanged​(Q queue)  
int queueSize​(Q queue)
Returns the number of agents (pedestrians) staying in the given queue
void setServiceSuspended​(ServiceUnit<Q> serviceUnit, boolean suspended)  
Modifier and Type Method Description

Method Detail

queueSize

int queueSize​(Q queue)
Returns the number of agents (pedestrians) staying in the given queue
Parameters:
queue - the queue
Returns:
the number of peds in the queue

getPeds

java.util.List<Agent> getPeds​(Q queue)
Returns the list of agents (pedestrians) staying in the given queue
Parameters:
queue - the queue
Returns:
the list of peds in the queue

getClosestQueue

Q getClosestQueue​(ServiceUnit<Q> serviceUnit)

getClosestQueueNotEmpty

Q getClosestQueueNotEmpty​(ServiceUnit<Q> serviceUnit)

getShortestQueue

Q getShortestQueue​(Agent agent,
                   boolean reverse)

getLongestQueue

Q getLongestQueue​(ServiceUnit<Q> serviceUnit)

isServiceSuspended

boolean isServiceSuspended​(ServiceUnit<Q> serviceUnit)

setServiceSuspended

void setServiceSuspended​(ServiceUnit<Q> serviceUnit,
                         boolean suspended)

onQueueCapacityChanged

void onQueueCapacityChanged​(Q queue)
How can we improve this article?