|
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.OrCondition
public class OrCondition
Represents a condition checking that at least one of a list of conditions applies.
Constructor Summary | |
---|---|
OrCondition(Condition... condList)
Constructs a new or condition based on 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 OrCondition(Condition... condList)
condList
- the list on conditions used
to perform the test.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 |