AnyLogic
Expand
Font size
All Superinterfaces:
Serializable

public interface ServiceDataSource<Q extends QueueUnit>
extends Serializable

Method Summary

Modifier and TypeMethodDescription
QgetClosestQueue(ServiceUnit<Q> serviceUnit) 
QgetClosestQueueNotEmpty(ServiceUnit<Q> serviceUnit) 
QgetLongestQueue(ServiceUnit<Q> serviceUnit) 
List<Agent>getPeds(Q queue)
Returns the list of agents (pedestrians) staying in the given queue
QgetShortestQueue(Agent agent, boolean reverse) 
booleanisServiceSuspended(ServiceUnit<Q> serviceUnit) 
voidonQueueCapacityChanged(Q queue) 
intqueueSize(Q queue)
Returns the number of agents (pedestrians) staying in the given queue
voidsetServiceSuspended(ServiceUnit<Q> serviceUnit, boolean suspended) 

Method Details

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

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)