Class Event
Object
Event
- All Implemented Interfaces:
Serializable
,Ownage
An event, defined to execute at a certain time.
The time can be defined in the following fields:
- month
- dayofmonth
- dayofweek
- hour
- minute
- Author:
- maartenl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Returns if this event is 'active'.Returns the day of the month, starting with 1.Returns the day of the week at which this event should be run.getHour()
Returns the hour in which this event should be run.Returns the minute in which this event should be run.getMonth()
Returns the month in which this event should be run.getOwner()
Retrieves the owner, the administrator, of this object.getRoom()
int
hashCode()
void
setCallable
(Boolean callable) void
setCreation
(LocalDateTime creation) void
setDayofmonth
(Integer dayofmonth) void
setDayofweek
(Integer dayofweek) void
setEventid
(Integer eventid) void
void
void
void
void
Sets the owner, the administrator, of this object.void
void
toString()
-
Constructor Details
-
Event
public Event() -
Event
-
Event
-
-
Method Details
-
getEventid
-
setEventid
-
getPerson
-
setPerson
-
getMonth
Returns the month in which this event should be run. Be warned JANUARY is month 0, the first month. December is month 11, the last month. If it returns null, it means every month is matched.- Returns:
- integer
-
setMonth
-
getDayofmonth
Returns the day of the month, starting with 1. If it returns null, it means every day of the month is matched.- Returns:
- integer
-
setDayofmonth
-
getHour
Returns the hour in which this event should be run. It's a 24 hour clock used here. First hour right after midnight is 0. If it returns null, it means every hour is matched.- Returns:
- integer
-
setHour
-
getMinute
Returns the minute in which this event should be run. Any value between 0 and 59 would be okay. If it returns null, it means every minute is matched.- Returns:
- integer
-
setMinute
-
getDayofweek
Returns the day of the week at which this event should be run. SUNDAY being 1 and SATURDAY being 7. If it returns null, it means every day of the week is matched.- Returns:
- integer
-
setDayofweek
-
getCallable
public boolean getCallable()Returns if this event is 'active'.- Returns:
- boolean, true if active, false otherwise.
-
setCallable
-
getRoom
-
setRoom
-
getCreation
-
setCreation
-
getOwner
-
setOwner
Description copied from interface:Ownage
Sets the owner, the administrator, of this object. -
getMethod
-
setMethod
-
hashCode
-
equals
-
toString
-