public static final class SimQueueWithGateOperationUtils.GatePassageCreditsRequest extends SimJQOperation.RequestQ<SimQueueWithGateOperationUtils.GatePassageCreditsOperation,SimQueueWithGateOperationUtils.GatePassageCreditsRequest>
SimQueueWithGateOperationUtils.GatePassageCreditsOperation.| Constructor and Description |
|---|
GatePassageCreditsRequest(SimQueue queue,
int credits)
Creates the request.
|
| Modifier and Type | Method and Description |
|---|---|
SimQueueWithGateOperationUtils.GatePassageCreditsRequest |
forJob(SimJob job)
Returns a copy of this request for another job.
|
SimQueueWithGateOperationUtils.GatePassageCreditsRequest |
forJobAndQueue(SimJob job,
SimQueue queue)
Returns a copy of this request for another job and another queue.
|
SimQueueWithGateOperationUtils.GatePassageCreditsRequest |
forQueue(SimQueue queue)
Returns a copy of this request for another queue.
|
int |
getCredits()
Returns the number of credits argument of this request.
|
SimQueueWithGateOperationUtils.GatePassageCreditsOperation |
getOperation()
Returns the singleton instance of
SimQueueWithGateOperationUtils.GatePassageCreditsOperation. |
forTargetEntity, getJob, getQueuegetTargetEntitypublic GatePassageCreditsRequest(SimQueue queue, int credits)
queue - The queue, non-null.credits - The new remaining gate-passage credits, non-negative, with Integer.MAX_VALUE treated as infinity.IllegalArgumentException - If credits is (strictly) negative.public final SimQueueWithGateOperationUtils.GatePassageCreditsOperation getOperation()
SimQueueWithGateOperationUtils.GatePassageCreditsOperation.SimQueueWithGateOperationUtils.GatePassageCreditsOperation.public final int getCredits()
Integer.MAX_VALUE treated as infinity.public SimQueueWithGateOperationUtils.GatePassageCreditsRequest forJob(SimJob job)
SimJQOperation.RequestJAndOrQforJob in class SimJQOperation.RequestJAndOrQ<SimQueueWithGateOperationUtils.GatePassageCreditsOperation,SimQueueWithGateOperationUtils.GatePassageCreditsRequest>job - The new job, non-null.public SimQueueWithGateOperationUtils.GatePassageCreditsRequest forQueue(SimQueue queue)
SimJQOperation.RequestJAndOrQforQueue in class SimJQOperation.RequestJAndOrQ<SimQueueWithGateOperationUtils.GatePassageCreditsOperation,SimQueueWithGateOperationUtils.GatePassageCreditsRequest>queue - The new queue, non-null.public SimQueueWithGateOperationUtils.GatePassageCreditsRequest forJobAndQueue(SimJob job, SimQueue queue)
SimJQOperation.RequestJAndOrQforJobAndQueue in class SimJQOperation.RequestJAndOrQ<SimQueueWithGateOperationUtils.GatePassageCreditsOperation,SimQueueWithGateOperationUtils.GatePassageCreditsRequest>job - The new job, non-null.queue - The new queue, non-null.Copyright © 2018. All rights reserved.