Package com.anylogic.engine.markup
- All Superinterfaces:
java.io.Serializable
public interface ServiceDataSource<Q extends QueueUnit>
extends java.io.Serializable
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 |
---|
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
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
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)
-
How can we improve this article?
-