|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.oss.impl.pm.util.WeeklyScheduleImpl
Title: JSR090 Reference Implementation Description: Copyright: Copyright 2001 Ericsson Radio Systems AB Company: Ericsson
Constructor Summary | |
WeeklyScheduleImpl()
|
Method Summary | |
java.lang.Object |
clone()
Deep copy of this instance. |
java.util.TimeZone |
getTimeZone()
Gets the time zone of the weekly schedule. |
boolean |
isActive()
Checks if the schedule is active or not. |
boolean |
isFridayActive()
Indicate if the day of week schedule is active on Friday. |
boolean |
isMondayActive()
Indicate if the day of week schedule is active on Monday. |
boolean |
isSaturdayActive()
Indicate if the day of week schedule is active on Saturday. |
boolean |
isSundayActive()
Indicate if the day of week schedule is active on Sunday. |
boolean |
isThursdayActive()
Indicate if the day of week schedule is active on Thursday. |
boolean |
isTuesdayActive()
Indicate if the day of week schedule is active on Tuesday. |
boolean |
isWednesdayActive()
Indicate if the day of week schedule is active on Wednesday. |
void |
setAllDaysActive()
Sets all days of the week to be active in the day of weekly schedule. |
void |
setFridayActive(boolean fridayActive)
Sets if Friday shall be active in the day of weekly schedule. |
void |
setMondayActive(boolean mondayActive)
Sets if Monday shall be active in the day of weekly schedule. |
void |
setSaturdayActive(boolean saturdayActive)
Sets if Saturday shall be active in the day of weekly schedule. |
void |
setSundayActive(boolean sundayActive)
Sets if Sunday shall be active in the day of weekly schedule. |
void |
setThursdayActive(boolean thursdayActive)
Sets if Thursday shall be active in the day of weekly schedule. |
void |
setTimeZone(java.util.TimeZone tz)
Sets the time zone for the weekly schedule. |
void |
setTuesdayActive(boolean tuesdayActive)
Sets if Tuesday shall be active in the day of weekly schedule. |
void |
setWednesdayActive(boolean wednesdayActive)
Sets if Wednesday shall be active in the day of weekly schedule. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WeeklyScheduleImpl()
Method Detail |
public java.lang.Object clone()
WeeklySchedule
clone
in interface WeeklySchedule
public boolean isActive()
If the current day of week is within the defined schedule this method will return true. If the current day of week is outside the schedule false will be returned.
isActive
in interface WeeklySchedule
public java.util.TimeZone getTimeZone()
getTimeZone
in interface WeeklySchedule
WeeklySchedule.setTimeZone(java.util.TimeZone)
public void setTimeZone(java.util.TimeZone tz)
If the time zone is not set the local time zone will be used.
setTimeZone
in interface WeeklySchedule
tz
- Time zone of the weekly schedule.WeeklySchedule.getTimeZone()
public void setAllDaysActive()
setAllDaysActive
in interface WeeklySchedule
public boolean isMondayActive()
isMondayActive
in interface WeeklySchedule
public void setMondayActive(boolean mondayActive)
setMondayActive
in interface WeeklySchedule
mondayActive
- If true, Monday will be active in the day of weekly schedule. If false, Monday will not be active.public boolean isTuesdayActive()
isTuesdayActive
in interface WeeklySchedule
public void setTuesdayActive(boolean tuesdayActive)
setTuesdayActive
in interface WeeklySchedule
tuesdayActive
- If true, Tuesday will be active in the day of weekly schedule. If false, Tuesday will not be active.public boolean isWednesdayActive()
isWednesdayActive
in interface WeeklySchedule
public void setWednesdayActive(boolean wednesdayActive)
setWednesdayActive
in interface WeeklySchedule
wednesdayActive
- If true, Wednesday will be active in the day of weekly schedule. If false, Wednesday will not be active.public boolean isThursdayActive()
isThursdayActive
in interface WeeklySchedule
public void setThursdayActive(boolean thursdayActive)
setThursdayActive
in interface WeeklySchedule
thursdayActive
- If true, Thursday will be active in the day of weekly schedule. If false, Thursday will not be active.public boolean isFridayActive()
isFridayActive
in interface WeeklySchedule
public void setFridayActive(boolean fridayActive)
setFridayActive
in interface WeeklySchedule
fridayActive
- If true, Friday will be active in the day of weekly schedule. If false, Friday will not be active.public boolean isSaturdayActive()
isSaturdayActive
in interface WeeklySchedule
public void setSaturdayActive(boolean saturdayActive)
setSaturdayActive
in interface WeeklySchedule
saturdayActive
- If true, Saturday will be active in the day of weekly schedule. If false, Saturday will not be active.public boolean isSundayActive()
isSundayActive
in interface WeeklySchedule
public void setSundayActive(boolean sundayActive)
setSundayActive
in interface WeeklySchedule
sundayActive
- If true, Sunday will be active in the day of weekly schedule. If false, Sunday will not be active.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |