Inheritance diagram for edu.cmu.hcii.calo.model.ScheduleItem:
Public Member Functions | |
ScheduleItem (boolean caloAdded, Calendar startTime, Calendar endTime) | |
Constructs a ScheduleItem. | |
float | getDurationMinutes () |
Returns the number of (possibly fractional) minutes between the start and end of the scheduled item. | |
Calendar | getEndTime () |
Acessor method for endTime. | |
String | getName () |
Accessor method for name. | |
Calendar | getStartTime () |
Acessor method for startTime. | |
void | setEndTime (Calendar newEndTime) |
Sets the end time of this ScheduleItem. | |
void | setHasReminder (boolean hasReminder) |
Sets whether this ScheduleItem has an associated reminder. | |
void | setName (String name) |
Setter method for name. | |
void | setProject (Project project) |
Sets the project associated with this ScheduleItem, if any. | |
void | setStartTime (Calendar newStartTime) |
Sets the start time of this ScheduleItem. | |
Private Attributes | |
String | name |
The name of this schedule item. | |
boolean | hasReminder |
Whether or not this schedule item has a reminder. | |
Project | project |
The project with which this schedule item is associated, if any. | |
Calendar | startTime |
The time when this item starts. | |
Calendar | endTime |
The time when this item ends. | |
Static Private Attributes | |
static final long | serialVersionUID = -4948371014705883547L |
To prevent serialization collisions. |
edu.cmu.hcii.calo.model.ScheduleItem.ScheduleItem | ( | boolean | caloAdded, | |
Calendar | startTime, | |||
Calendar | endTime | |||
) |
Constructs a ScheduleItem.
caloAdded | whether CALO added this item | |
startTime | when this item starts | |
endTime | when this item ends |
float edu.cmu.hcii.calo.model.ScheduleItem.getDurationMinutes | ( | ) |
Returns the number of (possibly fractional) minutes between the start and end of the scheduled item.
Calendar edu.cmu.hcii.calo.model.ScheduleItem.getEndTime | ( | ) |
Acessor method for endTime.
String edu.cmu.hcii.calo.model.ScheduleItem.getName | ( | ) |
Accessor method for name.
Calendar edu.cmu.hcii.calo.model.ScheduleItem.getStartTime | ( | ) |
Acessor method for startTime.
void edu.cmu.hcii.calo.model.ScheduleItem.setEndTime | ( | Calendar | newEndTime | ) |
Sets the end time of this ScheduleItem.
If the new end time is before this ScheduleItem's start time, they will be swapped.
newEndTime | the end time to set |
void edu.cmu.hcii.calo.model.ScheduleItem.setHasReminder | ( | boolean | hasReminder | ) |
Sets whether this ScheduleItem has an associated reminder.
hasReminder | true if this item has a reminder, false otherwise |
void edu.cmu.hcii.calo.model.ScheduleItem.setName | ( | String | name | ) |
Setter method for name.
name | the name to set |
void edu.cmu.hcii.calo.model.ScheduleItem.setProject | ( | Project | project | ) |
void edu.cmu.hcii.calo.model.ScheduleItem.setStartTime | ( | Calendar | newStartTime | ) |
Sets the start time of this ScheduleItem.
If the new start time is after this ScheduleItem's end time, they will be swapped.
newStartTime | the start time to set |
final long edu.cmu.hcii.calo.model.ScheduleItem.serialVersionUID = -4948371014705883547L [static, private] |
To prevent serialization collisions.
String edu.cmu.hcii.calo.model.ScheduleItem.name [private] |
The name of this schedule item.
boolean edu.cmu.hcii.calo.model.ScheduleItem.hasReminder [private] |
Whether or not this schedule item has a reminder.
The project with which this schedule item is associated, if any.
Calendar edu.cmu.hcii.calo.model.ScheduleItem.startTime [private] |
The time when this item starts.
Calendar edu.cmu.hcii.calo.model.ScheduleItem.endTime [private] |
The time when this item ends.