public class SequenceStep extends Object implements DTDConstants
SequenceTasks.
Additionally it might define a while condition and a counter name. Tasks
define task with arbitrary scheduling amongst each other, they are allowed
to run in parallel. When all task within a step are finished,
i.e. their complete clauses are met, the step is considered done. If no
while loop is specified, the sequence continues with the next step. If
a while cluase is specified, it is evaluated at the end of the step, and,
if not true, the step is repeated, all task are cleared again. The counter
is an internal variable starting with zero on the initial loop and
increasing every execution.| Modifier and Type | Field and Description |
|---|---|
private String |
loopcounter
If a counter name is specified, it is entered here.
|
private String |
loopwhile
If a while clause is specified, this is its string representation.
|
private Collection<SequenceTask> |
tasks
The collections of task belonging to this step.
|
ABORT, ABOVE, ABSTRACT, ABSTRACTPROPOSAL, ADDRESS, BELOW, BLOCK, BROADCAST, BROADCASTWITH, BV, CHAINING, CHANGE, CLASS, COMMAND, COMMANDID, COMMANDINIT, COMMANDLAST, COMMANDPARAMETER, COMMANDREF, COMMENT, COMPLETE, CONDITION, CONSTANT, CONSTANTNAME, CONSTANTVALUE, CONSTRAINT, CONSTRAINTOVERDUE, CONSTRAINTRELAX, DATA, DAUGHTER, DEC, DELAY, DELAYMAX, DELAYTIME, DISABLED, DOCPATH, DURATION, ELAPSED, EMAIL, ENABLED, EPOCH, EQUINOX, EXCEPTION, EXCEPTIONDAUGHTER, EXCEPTIONFOR, EXCEPTIONSUCCESSOR, EXCEPTIONTHIS, FALSE, FIELDOFVIEW, FILE, FITSHEADER, FITSHEADERID, FORMATCLASS, FORMATPATTERN, FROM, GAIN, HISTORY, HISTORYCOMPLETE, HISTORYDB, HISTORYMAX, HISTORYREAD, IGNORE, IMAGETYPE, INIT, INSTITUTION, INSTRUMENT, INTERN, KEY, MAX, MERIT, MIN, NOTIFY, OBJECT, OBJECTID, OBJECTNAME, OBSERVSTART, PICK, PICKMERIT, PICKSUCCESS, PMDEC, PMRA, POSITION, RA, RATE, REC, REQUIRES, RETRY, RETRYMAX, SELECT, SENDING, SEQUENCE, SEQUENCETYPE, SET, SETNAME, SETUP, SETUPID, STEP, STEPCOUNTER, STEPWHILE, SUCCESSOR, TARGET, TARGETACCESS, TARGETDB, TARGETNAME, TARGETNAMEPROPOSAL, TARGETREAD, TARGETSUBMITTED, TARGETTYPE, TASK, TASKDONE, TASKID, TEAM, TIMESLOT, TITLE, TO, TRUE, USER, V, VARIABLE| Constructor and Description |
|---|
SequenceStep(Element src)
Constructs a new step elements and immediately parses the DOM element
provided into all subsequent
SequenceTask instances. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCounter()
Returns the counter name for this step.
|
Collection<SequenceTask> |
getTasks()
Returns the collection of all task in this step.
|
String |
getWhile()
Returns null, if no while was specified for this step, otherwise
the string expression is returned.
|
private void |
parseStep(Element anchor)
Parses a single step into the individual sub-task collection,
additionally reading a possible looping condition.
|
private Collection<SequenceTask> tasks
private String loopwhile
private String loopcounter
public SequenceStep(Element src) throws ParseException
SequenceTask instances.ParseExceptionprivate void parseStep(Element anchor) throws ParseException
ParseExceptionpublic Collection<SequenceTask> getTasks()
public String getWhile()
public String getCounter()