Q - The type of SimQueues supported.public interface SimQueueStatePredictor<Q extends SimQueue>
SimQueues.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
SimQueuePredictor| Modifier and Type | Method and Description |
|---|---|
default boolean |
hasServerAccessCredits(Q queue,
SimQueueState<SimJob,Q> queueState)
Checks whether a given state represents a queue-state with server-access credits available.
|
default boolean |
isQueueAccessVacation(Q queue,
SimQueueState<SimJob,Q> queueState)
Checks whether a given state represents a queue-state vacation on given queue.
|
boolean |
isStartArmed(Q queue,
SimQueueState<SimJob,Q> queueState)
Checks whether a given state represents
StartArmed on given queue. |
default boolean isQueueAccessVacation(Q queue, SimQueueState<SimJob,Q> queueState)
The default implementation returns queueState.isQueueAccessVacation ().
queue - The queue.queueState - The queue state, non-null.IllegalArgumentException - If any of the arguments is null.default boolean hasServerAccessCredits(Q queue, SimQueueState<SimJob,Q> queueState)
The default implementation returns queueState.getServerAccessCredits () > 0.
queue - The queue.queueState - The queue state, non-null.IllegalArgumentException - If any of the arguments is null.boolean isStartArmed(Q queue, SimQueueState<SimJob,Q> queueState)
StartArmed on given queue.queue - The queue.queueState - The queue state, non-null.StartArmed at given queue.IllegalArgumentException - If any of the arguments is null.Copyright © 2018. All rights reserved.