Package com.anylogic.engine.markup
- All Superinterfaces:
Serializable
public interface ServiceDataSource<Q extends QueueUnit> extends Serializable
Modifier and Type | Method | Description |
---|---|---|
Q | getClosestQueue | |
Q | getClosestQueueNotEmpty | |
Q | getLongestQueue | |
List<Agent> | getPeds |
Returns the list of agents (pedestrians) staying in the given queue
|
Q | getShortestQueue | |
boolean | isServiceSuspended | |
void | onQueueCapacityChanged | |
int | queueSize |
Returns the number of agents (pedestrians) staying in the given queue
|
void | setServiceSuspended |
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
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
Q getClosestQueue(ServiceUnit<Q> serviceUnit)
Q getClosestQueueNotEmpty(ServiceUnit<Q> serviceUnit)
Q getShortestQueue(Agent agent, boolean reverse)
Q getLongestQueue(ServiceUnit<Q> serviceUnit)
boolean isServiceSuspended(ServiceUnit<Q> serviceUnit)
void setServiceSuspended(ServiceUnit<Q> serviceUnit, boolean suspended)
void onQueueCapacityChanged(Q queue)