| java.lang.Object org.cougaar.lib.util.UTILVerify
All known Subclasses: org.cougaar.glm.util.GLMVerify,
UTILVerify | public class UTILVerify (Code) | | Helper classes to see if a task is consistent and
reasonable.
|
exceedsTaskDuration | public boolean exceedsTaskDuration(Task t, long durInMillis)(Code) | | See if the time between the START_TIME preference and END_TIME
preference (latest date) is at least as long as the given duration.
Parameters: t - task to verify Parameters: durInMillis - duration to use (in millis) true if task has duration of at least as long as the duration d, false otherwise. |
hasDirectObject | public boolean hasDirectObject(Task t)(Code) | | |
hasEndPreference | public boolean hasEndPreference(Task t)(Code) | | |
hasRequiredFields | public boolean hasRequiredFields(Task t)(Code) | | |
hasStartPreference | public boolean hasStartPreference(Task t)(Code) | | |
isTaskTimingCorrect | public boolean isTaskTimingCorrect(Task t)(Code) | | Verify a few things in the task. The things verified are:
END_TIME, verify that the earliest comes before the best and latest,
and that the best comes before the latest.
START_TIME, verify that the start time comes before the END_TIME
earliest time.
|
reportDurationError | public String reportDurationError(Task t, long durInMillis)(Code) | | String explaining what's wrong with task |
reportTimingError | public String reportTimingError(Task t)(Code) | | String explaining what's wrong with task |
|
|