|
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.contactcenters.contact.SimpleContactFactory
public class SimpleContactFactory
This implements the ContactFactory
interface to
instantiate Contact
objects
with fixed parameters.
Constructor Summary | |
---|---|
SimpleContactFactory()
Constructs a new contact factory which will create contact objects with priority 1 and type ID 0. |
|
SimpleContactFactory(double priority,
int typeId,
boolean tracing)
Constructs a new contact factory which will create contact objects with priority priority and type ID typeId. |
|
SimpleContactFactory(int typeId)
Constructs a new contact factory which will create contact objects with priority 1 and type ID typeId. |
|
SimpleContactFactory(Simulator sim)
Equivalent to SimpleContactFactory() ,
using the given simulator sim. |
|
SimpleContactFactory(Simulator sim,
double priority,
int typeId,
boolean tracing)
Equivalent to SimpleContactFactory(double,int,boolean) ,
using the given simulator sim. |
|
SimpleContactFactory(Simulator sim,
int typeId)
Equivalent to SimpleContactFactory(int) ,
using the given simulator sim. |
Method Summary | |
---|---|
double |
getPriority()
Returns the priority of the created and reused contact objects. |
boolean |
getTracing()
Returns true if the created contacts will support steps tracing. |
int |
getTypeId()
Returns the type ID of the created and reused contact objects. |
Contact |
newInstance()
Constructs and returns a new Contact object. |
void |
setSimulator(Simulator sim)
Sets the simulator associated with this contact factory to sim. |
Simulator |
simulator()
Returns the simulator associated with this contact factory. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleContactFactory()
public SimpleContactFactory(Simulator sim)
SimpleContactFactory()
,
using the given simulator sim.
public SimpleContactFactory(int typeId)
typeId
- the type ID of the contacts.public SimpleContactFactory(Simulator sim, int typeId)
SimpleContactFactory(int)
,
using the given simulator sim.
public SimpleContactFactory(double priority, int typeId, boolean tracing)
priority
- the priority of the contact.typeId
- the type ID of the contacts.tracing
- the contact steps tracing indicator.public SimpleContactFactory(Simulator sim, double priority, int typeId, boolean tracing)
SimpleContactFactory(double,int,boolean)
,
using the given simulator sim.
Method Detail |
---|
public Simulator simulator()
public void setSimulator(Simulator sim)
sim
- the new associated simulator.public double getPriority()
public int getTypeId()
public boolean getTracing()
public Contact newInstance()
ContactFactory
Contact
object.
If a contact cannot be instantiated, a
ContactInstantiationException
is thrown.
newInstance
in interface ContactFactory
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 |