01: package org.osbl.issue.process;
02:
03: import org.concern.controller.AbstractTemporalCondition;
04: import org.concern.controller.ConditionEvaluationException;
05:
06: import org.osbl.issue.model.Issue;
07:
08: import java.util.Date;
09:
10: public class Due extends AbstractTemporalCondition<Issue> {
11: public boolean eval(Issue subject)
12: throws ConditionEvaluationException {
13: return subject.getDue().before(new Date());
14: }
15:
16: public long getAnticipatedTransition(Issue subject) {
17: return subject.getDue().getTime();
18: }
19: }
|