|
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.server.StartServiceEvent
public class StartServiceEvent
Represents an event that restarts the service of a contact. Service can be restarted in its communication phase, or in the after-contact work. This is used for state restoration of an agent group.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.simevents.Event |
---|
eventTime, priority, sim |
Constructor Summary | |
---|---|
StartServiceEvent(Agent targetAgent,
Contact contact,
double contactTime,
int ecType)
Constructs an event that will call targetAgent.getGroup(). serve
(contact, targetAgent, contactTime, ecType) when
it happens. |
|
StartServiceEvent(Agent targetAgent,
Contact contact,
double contactTime,
int ecType,
double afterContactTime,
int esType)
Constructs an event that will call targetAgent.getGroup(). serve
(contact, targetAgent, contactTime, ecType, afterContactTime, esType) when
it happens. |
|
StartServiceEvent(AgentGroup targetGroup,
Contact contact,
double contactTime,
int ecType)
Constructs an event that will call targetGroup. serve
(contact, contactTime, ecType) when
it happens. |
|
StartServiceEvent(AgentGroup targetGroup,
Contact contact,
double contactTime,
int ecType,
double afterContactTime,
int esType)
Constructs an event that will call targetGroup. serve
(contact, contactTime, ecType, afterContactTime, esType) when
it happens. |
|
StartServiceEvent(AgentGroup targetGroup,
EndServiceEvent oldEndServiceEvent)
Constructs a new start-service event that will put the contact in service represented by oldEndServiceEvent in the target agent group targetGroup. |
|
StartServiceEvent(EndServiceEvent oldEndServiceEvent)
Constructs a new start-service event that will put the contact in service represented by oldEndServiceEvent in the target agent group given by EndServiceEvent.getAgentGroup() . |
Method Summary | |
---|---|
void |
actions()
|
boolean |
contactDone()
Determines if the communication is finished between the contact and the agent. |
Contact |
getContact()
Returns the contact being served. |
EndServiceEvent |
getNewEndServiceEvent()
Returns the end-service event representing the contact's restarted service. |
double |
getScheduledAfterContactTime()
Returns the scheduled after-contact time. |
double |
getScheduledContactTime()
Returns the scheduled duration of the communication between the contact and an agent. |
int |
getScheduledEndContactType()
Returns the type of contact termination that will occur when the end-service event happens for the first time. |
int |
getScheduledEndServiceType()
Returns the type of the service termination that will occur when the end-service event happens for the second time. |
Agent |
getTargetAgent()
Returns the target agent of this event, or null if no target agent was specified. |
AgentGroup |
getTargetAgentGroup()
Returns the agent group that will receive the contact stored into the attached end-service 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 StartServiceEvent(EndServiceEvent oldEndServiceEvent)
EndServiceEvent.getAgentGroup()
.
oldEndServiceEvent
- the old end-service event.public StartServiceEvent(AgentGroup targetGroup, EndServiceEvent oldEndServiceEvent)
targetGroup
- the target agent group.oldEndServiceEvent
- the old end-service event.public StartServiceEvent(AgentGroup targetGroup, Contact contact, double contactTime, int ecType)
serve
(contact, contactTime, ecType) when
it happens.
targetGroup
- the target agent group.contact
- the contact to serve.contactTime
- the contact time.ecType
- the end-contact type.
NullPointerException
- if targetGroup or
contact are null.
IllegalArgumentException
- if contactTime
is negative.public StartServiceEvent(AgentGroup targetGroup, Contact contact, double contactTime, int ecType, double afterContactTime, int esType)
serve
(contact, contactTime, ecType, afterContactTime, esType) when
it happens.
targetGroup
- the target agent group.contact
- the contact to serve.contactTime
- the contact time.ecType
- the end-contact type.afterContactTime
- the after-contact time.esType
- the end-service type.
NullPointerException
- if targetGroup or
contact are null.
IllegalArgumentException
- if contactTime
or afterContactTime are negative.public StartServiceEvent(Agent targetAgent, Contact contact, double contactTime, int ecType)
serve
(contact, targetAgent, contactTime, ecType) when
it happens.
targetAgent
- the target agent.contact
- the contact to serve.contactTime
- the contact time.ecType
- the end-contact type.
NullPointerException
- if targetAgent or
contact are null.
IllegalArgumentException
- if contactTime
is negative.public StartServiceEvent(Agent targetAgent, Contact contact, double contactTime, int ecType, double afterContactTime, int esType)
serve
(contact, targetAgent, contactTime, ecType, afterContactTime, esType) when
it happens.
targetAgent
- the target agent.contact
- the contact to serve.contactTime
- the contact time.ecType
- the end-contact type.afterContactTime
- the after-contact time.esType
- the end-service type.
NullPointerException
- if targetAgent or
contact are null.
IllegalArgumentException
- if contactTime
or afterContactTime are negative.Method Detail |
---|
public AgentGroup getTargetAgentGroup()
public Agent getTargetAgent()
public Contact getContact()
public double getScheduledContactTime()
public double getScheduledAfterContactTime()
IllegalStateException
is thrown.
IllegalStateException
- if the after-contact time
was not set.public int getScheduledEndContactType()
public int getScheduledEndServiceType()
public boolean contactDone()
public EndServiceEvent getNewEndServiceEvent()
actions()
method.
public void actions()
actions
in class Event
public 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 |