|
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.msk.conditions.AndCondition
public class AndCondition
Represents a condition that checks if all conditions of a given list applies.
Constructor Summary | |
---|---|
AndCondition(Condition... condList)
Constructs a new and condition using the list of conditions condList. |
Method Summary | |
---|---|
boolean |
applies(Contact contact)
Checks the represented condition for the given contact contact, and returns true if and only if the condition applies. |
Condition[] |
getConditions()
Returns the associated list of conditions. |
void |
init()
Calls stop() , then calls
init for each initializable condition
associated with this object. |
boolean |
isStarted()
Determines if the element is enabled or disabled. |
void |
start()
Calls start for each associated condition implementing the ToggleElement interface. |
void |
stop()
Calls stop for each associated condition implementing the ToggleElement interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndCondition(Condition... condList)
condList
- the list of conditions to check.Method Detail |
---|
public Condition[] getConditions()
public boolean applies(Contact contact)
Condition
applies
in interface Condition
contact
- the contact on which to check the condition.
public boolean isStarted()
ToggleElement
isStarted
in interface ToggleElement
public void start()
ToggleElement
interface.
start
in interface ToggleElement
public void stop()
ToggleElement
interface.
stop
in interface ToggleElement
public void init()
stop()
, then calls
init for each initializable condition
associated with this object.
init
in interface Initializable
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |