|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectXGTRBAC.PeriodicTimeExpr.StartTimeExpr
public class PeriodicTimeExpr.StartTimeExpr
An inner "StartTimeExpr" class *
| Field Summary | |
|---|---|
private java.util.LinkedList |
DaySet
|
private java.util.LinkedList |
MonthSet
|
private java.lang.String |
PTExprId
|
private java.util.LinkedList |
WeekSet
|
private java.lang.String |
Year
|
| Constructor Summary | |
|---|---|
PeriodicTimeExpr.StartTimeExpr()
Creates a new instance of StartTimeExpr |
|
| Method Summary | |
|---|---|
int |
addDay(java.lang.String day_id)
Adds a new day to the DaySet |
int |
addMonth(java.lang.String month_id)
Adds a new month to the MonthSet |
int |
addWeek(java.lang.String week_id)
Adds a new week to the WeekSet |
boolean |
checkCalDuration(int cal_period,
int this_period,
DurationExpr d_expr,
int cal_type)
Evaluates if current calendar is included in calendar+duration |
boolean |
checkStartTime(Policy policy,
java.util.GregorianCalendar calendar,
java.lang.String d_expr_id)
Evaluates the start time expression with respect to current time |
boolean |
evaluateDay(int cal_year,
int cal_month,
int this_month,
int cal_week,
int this_week,
int cal_day,
DurationExpr d_expr,
int i)
Checks if the periodic time constraint is satisfied at the given day |
boolean |
evaluateMonth(int cal_year,
int cal_month,
int cal_week,
int cal_day,
DurationExpr d_expr,
int i)
Checks if the periodic time constraint is satisfied at the given month |
boolean |
evaluateWeek(int cal_year,
int cal_month,
int this_month,
int cal_week,
int cal_day,
DurationExpr d_expr,
int i)
Checks if the periodic time constraint is satisfied at the given week |
boolean |
evaluateYear(int cal_year)
Checks if the periodic time constraint is satisfied at the given year |
java.lang.String |
getDay(int index)
Returns the day |
int |
getDayCount()
Returns the number of days in day set |
java.lang.String |
getMonth(int index)
Returns the month |
int |
getMonthCount()
Returns the number of months in month set |
int |
getPeriod(int year,
int month,
int week,
int day)
Returns the period in days from the start of the year given a month, week, and day |
java.lang.String |
getPTExprId()
Returns the id reference of the periodic time for this start time expression |
java.lang.String |
getWeek(int index)
Returns the week |
int |
getWeekCount()
Returns the number of weeks in week set |
java.lang.String |
getYear()
Returns the year of the start time expression |
void |
setPTExprId(java.lang.String pt_expr_id)
Sets the id reference of the periodic time for this start time expression |
void |
setYear(java.lang.String year)
Sets the year of the start time expression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String PTExprId
private java.lang.String Year
private java.util.LinkedList MonthSet
private java.util.LinkedList WeekSet
private java.util.LinkedList DaySet
| Constructor Detail |
|---|
public PeriodicTimeExpr.StartTimeExpr()
| Method Detail |
|---|
public java.lang.String getPTExprId()
public void setPTExprId(java.lang.String pt_expr_id)
pt_expr_id - The periodic time id reference supplied as Stringpublic void setYear(java.lang.String year)
year - The year supplied as Stringpublic java.lang.String getYear()
public int getMonthCount()
public int getWeekCount()
public int getDayCount()
public java.lang.String getMonth(int index)
index - The integer index of the month in the MonthSet
public java.lang.String getWeek(int index)
index - The integer index of the week in the WeekSet
public java.lang.String getDay(int index)
index - The integer index of the day in the DaySet
public int addMonth(java.lang.String month_id)
month_id - The id of month supplied as String
public int addWeek(java.lang.String week_id)
week_id - The id of week supplied as String
public int addDay(java.lang.String day_id)
day_id - The id of day supplied as String
public boolean checkStartTime(Policy policy,
java.util.GregorianCalendar calendar,
java.lang.String d_expr_id)
policy - The reference to policy object supplied as Policycalendar - The interval to compare with supplied as GregorianCalendard_expr_id - The reference id of the duration expression supplied as String
public boolean evaluateYear(int cal_year)
cal_year - The year calendar supplied as int
public boolean evaluateMonth(int cal_year,
int cal_month,
int cal_week,
int cal_day,
DurationExpr d_expr,
int i)
cal_year - The year calendar to compare with supplied as intcal_month - The month calendar to compare with supplied as intcal_week - The week calendar supplied as intcal_day - The day calendar supplied as intd_expr - The reference to the duration expression supplied as DurationExpri - An integer index of the month being comapred in the MonnthSet
public boolean evaluateWeek(int cal_year,
int cal_month,
int this_month,
int cal_week,
int cal_day,
DurationExpr d_expr,
int i)
cal_year - The year calendar supplied as intcal_month - The month calendar supplied as intthis_month - The month calendar to compare with supplied as intcal_week - The week calendar to compare with supplied as intcal_day - The day calendar supplied as intd_expr - The reference to the duration expression supplied as DurationExpri - An integer index of the week being comapred in the WeekSet
public boolean evaluateDay(int cal_year,
int cal_month,
int this_month,
int cal_week,
int this_week,
int cal_day,
DurationExpr d_expr,
int i)
cal_year - The year calendar supplied as intcal_month - The month calendar supplied as intthis_month - The month calendar to compare with supplied as intcal_week - The week calendar to compare with supplied as intthis_week - The week calendar to compare with supplied as intcal_day - The day calendar supplied as intd_expr - The reference to the duration expression supplied as DurationExpri - An integer index of the week being comapred in the WeekSet
public int getPeriod(int year,
int month,
int week,
int day)
year - The year calendar supplied as intmonth - The month calendar supplied as intweek - The week calendar supplied as intday - The day calendar supplied as int
public boolean checkCalDuration(int cal_period,
int this_period,
DurationExpr d_expr,
int cal_type)
cal_period - The period in days of the calendar to compare with supplied as intthis_period - The pereiod in days of the calendar being compared supplied as intd_expr - The reference to the duration expression supplied as DurationExprcal_type - The type of the supplied calendar:0 is months, 1 is weeks, 2 is days
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||