|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lifl.magique.policy.concurrency.DefaultConcurrencyPolicy
this is the default concurrency policy, answer is considered as being received as soon as one answer has been received, the * selected answer is the first one
| Constructor Summary | |
DefaultConcurrencyPolicy()
|
|
| Method Summary | |
boolean |
isAnswerReceived(AnswerVector theAnswers)
returns true if if at least one answer has been received |
Answer |
selectAnswer(AnswerVector theAnswers)
select the first answer of theAnswer (must be non empty, this is assured from isAnswerReceived) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultConcurrencyPolicy()
| Method Detail |
public Answer selectAnswer(AnswerVector theAnswers)
selectAnswer in interface ConcurrencyPolicyAnswerpublic boolean isAnswerReceived(AnswerVector theAnswers)
isAnswerReceived in interface ConcurrencyPolicyAnswer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||