|
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.dialer.DialerActionEvent
public class DialerActionEvent
This event occurs when the dialer
reached or failed to reach a called person.
Such events are scheduled by the Dialer.dial()
method if generated dial delays are greater than zero.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.simevents.Event |
---|
eventTime, priority, sim |
Constructor Summary | |
---|---|
DialerActionEvent(Dialer dialer,
Contact contact,
boolean success)
Constructs a new dialer action event for contact contact with success indicator success. |
Method Summary | |
---|---|
void |
actions()
|
boolean |
cancel()
|
DialerActionEvent |
clone()
|
Contact |
getContact()
Returns the contact object representing the called person. |
Dialer |
getDialer()
Returns the dialer this event is attached to. |
boolean |
isObsolete()
Determines if this event is obsolete. |
boolean |
isSuccessful()
Returns true if a right party connect will occur at the time of this event. |
void |
schedule(double delay)
|
void |
scheduleAfter(Event event)
|
void |
scheduleBefore(Event event)
|
void |
scheduleNext()
|
String |
toString()
|
Methods inherited from class umontreal.iro.lecuyer.simevents.Event |
---|
cancel, compareTo, getRa, priority, reschedule, setPriority, setRa, setSimulator, setTime, simulator, time |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DialerActionEvent(Dialer dialer, Contact contact, boolean success)
dialer
- the associated dialer.contact
- the contact object representing the call being tried.success
- the success indicator.Method Detail |
---|
public boolean cancel()
cancel
in class Event
public void schedule(double delay)
schedule
in class Event
public void scheduleBefore(Event event)
scheduleBefore
in class Event
public void scheduleAfter(Event event)
scheduleAfter
in class Event
public void scheduleNext()
scheduleNext
in class Event
public Contact getContact()
public Dialer getDialer()
public boolean isSuccessful()
public boolean isObsolete()
Dialer.init()
, some action
events might still be in the simulator's event list.
One must
use this method in actions()
to test
if this event is obsolete. If that returns true,
one should return immediately.
public void actions()
actions
in class Event
public String toString()
toString
in class Object
public DialerActionEvent clone()
clone
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |