public class Period extends UC4Object
Usage Example:
Period period = (Period) open("NAME.OF.PERIOD.OBJECT");
//Create a ExecuteRecurring instance with the settings from the Period object.
ExecuteRecurring er = period.createExecuteRecurring();
executeObject.executeRecurring(er);
Constructor and Description |
---|
Period() |
Modifier and Type | Method and Description |
---|---|
ExecuteRecurring |
createExecuteRecurring()
Creates a new
ExecuteRecurring instance with the settings copied from this Period object. |
TaskCalendar |
getCalendarCondition()
Deprecated.
Use getExecuteRecurring() instead
|
int |
getDateRangeRuns()
Deprecated.
Use getExecuteRecurring() instead
|
ExecuteRecurring |
getExecuteRecurring()
This method will return the
ExecuteRecurring details. |
int |
getExecutionInterval()
Deprecated.
Use getExecuteRecurring() instead
|
int |
getGapInterval()
Deprecated.
Use getExecuteRecurring() instead
|
DateTime |
getRangeEndDate()
Deprecated.
Use getExecuteRecurring() instead
|
DateTime |
getRangeStartDate()
Deprecated.
Use getExecuteRecurring() instead
|
Time |
getTimeframeEnd()
Deprecated.
Use getExecuteRecurring() instead
|
Time |
getTimeframeStart()
Deprecated.
Use getExecuteRecurring() instead
|
Time |
getTimeOfSingleExecution()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
hasDateRangeRuns()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
hasDateRangeWithEndTime()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
hasDateRangeWithoutEnd()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
hasTimeframeAdjustment()
Deprecated.
Use getExecuteRecurring() instead
|
Header |
header()
Returns the header data of this object.
|
boolean |
isAllowOneOverlap()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isExecutable()
Returns
true if this Object can be executed. |
boolean |
isExecutedAtTime()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isExecutedInterval()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isExecutedWithGap()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isFriday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isMonday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isSaturday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isSunday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isThursday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isTuesday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
isWednesday()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
runsOnDefinedCalendar()
Deprecated.
Use getExecuteRecurring() instead
|
boolean |
runsOnDefinedWeekdays()
Deprecated.
Use getExecuteRecurring() instead
|
void |
setAllowOneOverlap(boolean overlap)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setAtTime(Time time)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setCalendarCondition(TaskCalendar calendar)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setDateRange(DateTime startDate,
DateTime endDate)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setDateRange(DateTime startDate,
int runs)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setExecuteRecurring(ExecuteRecurring executeRecurring)
This method is used to set the
ExecuteRecurring details. |
void |
setExecutionInterval(int every)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setGapToPreviousRun(int gap)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setRangeWithoutEnd(DateTime startDate)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setTimeframe(Time start,
Time end,
boolean forceAdjustment)
Deprecated.
Use setExecuteRecurring() instead
|
void |
setWeekDays(boolean mo,
boolean tu,
boolean we,
boolean th,
boolean fr,
boolean sa,
boolean su)
Deprecated.
Use setExecuteRecurring() instead
|
public Header header()
public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object
@Deprecated public void setTimeframe(Time start, Time end, boolean forceAdjustment)
start
- Start timeend
- End timeforceAdjustment
- Aligns the start time on the time frame if set to true@Deprecated public Time getTimeframeStart()
setTimeframe
.@Deprecated public Time getTimeframeEnd()
setTimeframe
.@Deprecated public boolean hasTimeframeAdjustment()
@Deprecated public void setExecutionInterval(int every)
every
- Number of minutes of the execution interval@Deprecated public boolean isExecutedInterval()
@Deprecated public int getExecutionInterval()
@Deprecated public void setGapToPreviousRun(int gap)
gap
- Time gap in minutes@Deprecated public boolean isExecutedWithGap()
@Deprecated public int getGapInterval()
@Deprecated public void setAtTime(Time time)
time
- Start time@Deprecated public Time getTimeOfSingleExecution()
setAtTime
.@Deprecated public boolean isExecutedAtTime()
@Deprecated public void setAllowOneOverlap(boolean overlap)
overlap
is set to false
there will only
be one task at one time even if the old run has not finished.overlap
- True if one overlap is allowed@Deprecated public boolean isAllowOneOverlap()
@Deprecated public void setDateRange(DateTime startDate, DateTime endDate)
startDate
- Start dateendDate
- End date@Deprecated public boolean hasDateRangeWithEndTime()
@Deprecated public DateTime getRangeStartDate()
setDateRange
.@Deprecated public DateTime getRangeEndDate()
setDateRange
.@Deprecated public void setRangeWithoutEnd(DateTime startDate)
startDate
- start date@Deprecated public boolean hasDateRangeWithoutEnd()
@Deprecated public void setDateRange(DateTime startDate, int runs)
startDate
- Start dateruns
- Number of run@Deprecated public int getDateRangeRuns()
@Deprecated public boolean hasDateRangeRuns()
@Deprecated public void setCalendarCondition(TaskCalendar calendar)
calendar
- Calendar condition@Deprecated public TaskCalendar getCalendarCondition()
setCalendarCondition
.@Deprecated public void setWeekDays(boolean mo, boolean tu, boolean we, boolean th, boolean fr, boolean sa, boolean su)
mo
- Mondaytu
- Tuesdaywe
- Wednesdayth
- Thursdayfr
- Fridaysa
- Saturdaysu
- Sunday@Deprecated public boolean runsOnDefinedWeekdays()
true
if setWeekDays
has been called before.
Note: When this method returns true, calls to runsOnDefinedCalendar()
will return false.
@Deprecated public boolean runsOnDefinedCalendar()
true
if setCalendarCondition(TaskCalendar)
has been called before.
Note: When this method returns true, calls to runsOnDefinedWeekdays()
will return false.
@Deprecated public boolean isSunday()
@Deprecated public boolean isMonday()
@Deprecated public boolean isTuesday()
@Deprecated public boolean isWednesday()
@Deprecated public boolean isThursday()
@Deprecated public boolean isFriday()
@Deprecated public boolean isSaturday()
public ExecuteRecurring createExecuteRecurring()
ExecuteRecurring
instance with the settings copied from this Period object.
The content of header()
.getTitle() is transfered to the description field of the returned ExecuteRecurring
object.
java.lang.IllegalArgumentException
- When header()
.getTitle() is longer than 255 characters.ExecuteRecurring.getPeriodDescription()
,
Header.getTitle()
public void setExecuteRecurring(ExecuteRecurring executeRecurring)
ExecuteRecurring
details.executeRecurring
- ExecuteRecurring instancepublic ExecuteRecurring getExecuteRecurring()
ExecuteRecurring
details.