public class ResourcePoolAnimation extends Res
QueueBased.QueueActionFIFO, LIFO, RANDOM, UNDEFINED| Constructor and Description |
|---|
ResourcePoolAnimation(ModelAnimation owner,
java.lang.String name,
int capacity,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Accumulate
|
ResourcePoolAnimation(ModelAnimation owner,
java.lang.String name,
int sortOrder,
int qCapacity,
int capacity,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Res
|
| Modifier and Type | Method and Description |
|---|---|
void |
createAnimation(Position pos,
FormExt form,
java.lang.String resourceType,
boolean showInAnimation)
create animation with full parameterization
|
boolean |
provide(EntityBasicAnimation proc,
int needRes)
Entity proc need needRes resources to process.
|
boolean |
provide(int needRes)
The currentSimProcess need needRes resources to process.
|
void |
takeBack(EntityBasicAnimation proc,
int takeBackRes)
proc is in processing and gives resources back.
|
void |
takeBack(int takeBackRes)
The currentSimProcess give resources back.
|
avgUsage, changeLimit, createDefaultReporter, deadlockCheckOff, deadlockCheckOn, getAvail, getDeadlockCheck, getidNumber, getLimit, getMinimum, getPassBy, getQueue, getQueueStrategy, getRefused, getUsers, isDeadlockDetected, reset, setDeadlockDetected, setPassBy, takeBackaddObserver, averageLength, averageWaitTime, deleteObserver, getQueueLimit, length, maxLength, maxLengthAt, maxWaitTime, maxWaitTimeAt, minLength, minLengthAt, notifyObservers, setQueueImpWarning, stdDevLength, stdDevWaitTime, zeroWaitsgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic ResourcePoolAnimation(ModelAnimation owner, java.lang.String name, int sortOrder, int qCapacity, int capacity, boolean showInReport, boolean showInTrace)
owner - used modelname - as in RessortOrder - of inout queue possible values:
ProcessQueueAnimation.FIFO
ProcessQueueAnimation.LIFOqCapacity - capacity of input queuecapacity - No of resources available in resource poolshowInReport - as in ResshowInTrace - as in Respublic ResourcePoolAnimation(ModelAnimation owner, java.lang.String name, int capacity, boolean showInReport, boolean showInTrace)
owner - used modelname - as in Rescapacity - No of resources available in resource poolshowInReport - as in ResshowInTrace - as in Respublic void createAnimation(Position pos, FormExt form, java.lang.String resourceType, boolean showInAnimation)
pos - middle point of animation objectform - form of animation objectresourceType - resourceTypeName (only for information, its no Id)showInAnimation - switch animation on or offpublic boolean provide(EntityBasicAnimation proc, int needRes) throws SuspendExecution
proc - needRes - SuspendExecutionpublic void takeBack(EntityBasicAnimation proc, int takeBackRes)
proc - takeBackRes - public boolean provide(int needRes)
throws SuspendExecution