public class RollCalendarKeyword extends CalendarKeyword
| Constructor and Description |
|---|
RollCalendarKeyword(UC4ObjectName name,
CalendarCondition cond)
Constructs a new
RollCalendarKeyword using the specified source calendar condition. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollision(RollCalendarCollision coll)
Adds a
RollCalendarCollision to the list of reactions in case of collision. |
int |
collionsSize()
Returns the number of entries in the collision list.
|
Iterator<RollCalendarCollision> |
collisionIterator()
Returns an iterator over
RollCalendarCollision. |
int |
getAdjustDays()
Returns the number of days of adjustment.
|
CalendarCondition |
getAdjustmentCalendar()
Returns the name and keyword of the calendar which contains valid days for adjustment.
|
char |
getAdjustSign() |
CalendarCondition |
getSourceCalendar()
Returns the source calendar condition.
|
boolean |
isGroup()
Returns
true if this is a group keyword. |
boolean |
isMonthly()
Returns
true if this is a monthly keyword. |
boolean |
isRoll()
Returns
true if this is a roll keyword. |
boolean |
isStatic()
Returns
true if this is a static keyword. |
boolean |
isWeekly()
Returns
true if this is a weekly keyword. |
boolean |
isYearly()
Returns
true if this is a yearly keyword. |
boolean |
removeCollision(RollCalendarCollision coll)
Removes the specified reaction in case of a collision.
|
void |
setAdjustDays(int adjustDays)
Sets the number of days of adjustment.
|
void |
setAdjustmentCalendar(CalendarCondition adjustmentCalendar)
Sets the calendar and keyword from which days should be choosen if adjustment is enabled.
|
void |
setAdjustSign(char sign)
Sets the sign of the adjust offset.
|
void |
setSourceCalendar(CalendarCondition sourceCalendar)
Sets the source calendar condition.
|
containsDate, equals, getCalendarName, getErrorMessageInsert, getErrorMessageNumber, getErrorText, getName, getPreCalculatedDates, hashCode, setErrorMessageInsert, setName, toStringpublic RollCalendarKeyword(UC4ObjectName name, CalendarCondition cond)
RollCalendarKeyword using the specified source calendar condition.name - Name of the calendar keywordcond - Source calendar and keywordpublic Iterator<RollCalendarCollision> collisionIterator()
RollCalendarCollision.public void addCollision(RollCalendarCollision coll)
RollCalendarCollision to the list of reactions in case of collision.coll - Reactions in case of collisionpublic boolean removeCollision(RollCalendarCollision coll)
coll - Reactions in case of collisionpublic int collionsSize()
public int getAdjustDays()
public void setAdjustDays(int adjustDays)
adjustDays - Integer containing the day offsetpublic CalendarCondition getAdjustmentCalendar()
public void setAdjustmentCalendar(CalendarCondition adjustmentCalendar)
adjustmentCalendar can be set to null if
no specific calendar with valid days should be used.adjustmentCalendar - Calendar name and calendar keyword containing valid days for adjustmentpublic CalendarCondition getSourceCalendar()
public void setSourceCalendar(CalendarCondition sourceCalendar)
sourceCalendar - Source calendar conditionpublic boolean isStatic()
CalendarKeywordtrue if this is a static keyword.isStatic in class CalendarKeywordpublic boolean isWeekly()
CalendarKeywordtrue if this is a weekly keyword.isWeekly in class CalendarKeywordpublic boolean isMonthly()
CalendarKeywordtrue if this is a monthly keyword.isMonthly in class CalendarKeywordpublic boolean isYearly()
CalendarKeywordtrue if this is a yearly keyword.isYearly in class CalendarKeywordpublic boolean isGroup()
CalendarKeywordtrue if this is a group keyword.isGroup in class CalendarKeywordpublic boolean isRoll()
CalendarKeywordtrue if this is a roll keyword.isRoll in class CalendarKeywordpublic void setAdjustSign(char sign)
sign - Sign '+' or '-'public char getAdjustSign()
Copyright © 2021. All rights reserved.