|
ContactCenters V. 0.9.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.simevents.Event
umontreal.iro.lecuyer.contactcenters.queue.EnqueueEvent
public class EnqueueEvent
Represents a simulation event that will put a queued contact back in its original waiting queue. This is used for state restoration of a waiting queue.
| Field Summary |
|---|
| Fields inherited from class umontreal.iro.lecuyer.simevents.Event |
|---|
eventTime, priority, sim |
| Constructor Summary | |
|---|---|
EnqueueEvent(DequeueEvent oldDequeueEvent)
Constructs a new enqueue event from an old dequeue event using the target queue returned by DequeueEvent.getWaitingQueue(). |
|
EnqueueEvent(WaitingQueue targetQueue,
Contact contact,
double queueTime,
int dqType)
Constructs a new enqueue event that will put a contact contact into the target waiting queue targetQueue. |
|
EnqueueEvent(WaitingQueue targetQueue,
DequeueEvent oldDequeueEvent)
Constructs a new enqueue event from an old dequeue event that will put a queued contact into the target waiting queue targetQueue. |
|
| Method Summary | |
|---|---|
void |
actions()
|
Contact |
getContact()
Returns the contact to be queued when the event occurs. |
DequeueEvent |
getNewDequeueEvent()
Returns the dequeue event representing the contact put back in the waiting queue. |
int |
getScheduledDequeueType()
Returns the scheduled dequeue type assigned to the contact when it is queued. |
double |
getScheduledQueueTime()
Returns the scheduled maximal queue time assigned to the contact when it is queued. |
WaitingQueue |
getTargetWaitingQueue()
Returns the waiting queue in which the previously queued contact will be added by this event. |
String |
toString()
|
| Methods inherited from class umontreal.iro.lecuyer.simevents.Event |
|---|
cancel, cancel, compareTo, getRa, priority, reschedule, schedule, scheduleAfter, scheduleBefore, scheduleNext, setPriority, setRa, setSimulator, setTime, simulator, time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnqueueEvent(DequeueEvent oldDequeueEvent)
DequeueEvent.getWaitingQueue().
oldDequeueEvent - the old dequeue event to be used.
public EnqueueEvent(WaitingQueue targetQueue,
DequeueEvent oldDequeueEvent)
targetQueue - the target waiting queue.oldDequeueEvent - the old dequeue event to be used.
public EnqueueEvent(WaitingQueue targetQueue,
Contact contact,
double queueTime,
int dqType)
targetQueue - the target waiting queue.contact - the contact being queued.queueTime - the maximal queue time.dqType - the dequeue type.
NullPointerException - if contact or targetQueue are
null.
IllegalArgumentException - if queueTime is negative.| Method Detail |
|---|
public WaitingQueue getTargetWaitingQueue()
public Contact getContact()
public double getScheduledQueueTime()
public int getScheduledDequeueType()
public DequeueEvent getNewDequeueEvent()
actions() method.
public void actions()
actions in class Eventpublic String toString()
toString in class Object
|
ContactCenters V. 0.9.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||