public class PeriodicIntervalTime extends SetComponentTime
Definition: An interval of time that recurs periodically. Periodic intervals have two properties, phase and period. The phase specifies the "interval prototype" that is repeated every period.
Note 3 - Alignment
Specifies if and how the repetitions are aligned to the cycles of the underlying calendar
(e.g., to distinguish every 30 days from "the 5th of every month".) A non-aligned periodic
interval recurs independently from the calendar. An aligned periodic interval is
synchronized with the calendar.
Note 5 - phase
A prototype of the repeating interval specifying the duration of each occurrence and
anchors the periodic interval sequence at a certain point in time.
Note 6 - period
A time duration specifying as a reciprocal measure of the frequency at which the periodic
interval repeats.
Note 7 - frequency
The inverse of period, but allows to specify a number of repeats in a time unit using a
ratio.
CalendarCycleCode,
(IVL_TS),
(SXCM_TS)operatorvalue| Constructor and Description |
|---|
PeriodicIntervalTime(double period,
CalendarCycleCode cycleAlignment) |
PeriodicIntervalTime(double period,
CalendarCycleCode cycleAlignment,
RestrictedTimeInterval phase) |
PeriodicIntervalTime(RestrictedTimeInterval phase) |
PeriodicIntervalTime(TimeQuantity frequency)
Set a time interval using the frequency method.
|
PeriodicIntervalTime(TimeQuantity frequency,
int denominator)
Set a time interval using the frequency method.
|
| Modifier and Type | Method and Description |
|---|---|
CalendarCycleCode |
getCycleAlignment() |
Integer |
getDenominator() |
TimeQuantity |
getFrequency() |
Double |
getPeriod() |
RestrictedTimeInterval |
getPhase() |
void |
setCycleAlignment(CalendarCycleCode cycleAlignment) |
void |
setDenominator(int denominator) |
void |
setFrequency(TimeQuantity frequency) |
void |
setPeriod(Double period) |
void |
setPhase(RestrictedTimeInterval phase) |
getNarrative, getOperator, setNarrative, setOperatorgetValue, setValuepublic PeriodicIntervalTime(TimeQuantity frequency)
frequency - A time quantity with a unit and width, optionally with a narrative.
NOTE: a frequency narrative will override the periodic time interval narrativepublic PeriodicIntervalTime(TimeQuantity frequency, int denominator)
frequency - A time quantity with a unit and width, optionally with a narrative.
NOTE: a frequency narrative will override the periodic time interval narrativepublic PeriodicIntervalTime(RestrictedTimeInterval phase)
public PeriodicIntervalTime(double period,
CalendarCycleCode cycleAlignment)
public PeriodicIntervalTime(double period,
CalendarCycleCode cycleAlignment,
RestrictedTimeInterval phase)
public CalendarCycleCode getCycleAlignment()
public RestrictedTimeInterval getPhase()
public void setPhase(RestrictedTimeInterval phase)
public void setCycleAlignment(CalendarCycleCode cycleAlignment)
public Double getPeriod()
public void setPeriod(Double period)
public TimeQuantity getFrequency()
public void setFrequency(TimeQuantity frequency)
public void setDenominator(int denominator)
public Integer getDenominator()
Copyright © 2021. All rights reserved.