public static class ScheduleMonitor.Task
extends java.lang.Object
Constructor and Description |
---|
Task(boolean srcEH,
int runID,
org.w3c.dom.Element task,
ConnectionAttributes session)
Creates an instance from a DOM element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConditions()
Returns the value of the conditions column in the monitor.
|
int |
getDayOffset()
Returns the number of days (calendar days serve as a basis) which must have passed after the start of the period.
|
java.lang.String |
getName() |
DateTime |
getNextCheck()
Returns the timestamp of the next check.
|
DateTime |
getNextStart()
Returns the timstamp of the next start.
|
java.lang.String |
getObjectType()
Returns the type of the Object.
|
int |
getRunID()
Returns the RunID of the task in the monitor or
0 if the task has not been executed. |
int |
getScheduleRunID()
Returns the RunID of the Schedule.
|
Time |
getStartTime()
Return the start time of the task.
|
java.lang.String |
getStatus()
Returns the status of this task as String which is independent on the logon language.
|
int |
getStatusCode()
Returns the status of the task as integer.
|
java.lang.String |
getStatusText()
Returns a description of the status.
|
java.lang.String |
getTaskPosition()
Returns the position of the task in the Schedule
|
boolean |
hasComment() |
boolean |
isActive()
Returns
true if the task is active. |
boolean |
isNextStartNotDefined() |
public Task(boolean srcEH, int runID, org.w3c.dom.Element task, ConnectionAttributes session)
srcEH
- True if the task is in the activity listrunID
- RunIdtask
- Elementsession
- API Session infopublic int getDayOffset()
public DateTime getNextStart()
public DateTime getNextCheck()
public Time getStartTime()
public java.lang.String getTaskPosition()
public boolean isActive()
true
if the task is active.
If the check box is not selected, the task is not active. It is therefore not executed but is still part of the Schedule.public int getRunID()
0
if the task has not been executed.public int getScheduleRunID()
public java.lang.String getObjectType()
public java.lang.String getConditions()
public java.lang.String getName()
public java.lang.String getStatusText()
AbstractTask.getStatusCode()
public java.lang.String getStatus()
AbstractTask.getStatusCode()
public final int getStatusCode()
-1
in case of an errorpublic boolean hasComment()
true
if this task item has an attached comment.public boolean isNextStartNotDefined()
true
if this task item does not have next start time.