edu.cmu.hcii.calo.model.ScheduleItem Class Reference

Inherits edu.cmu.hcii.calo.model.ManagedObject.

Inheritance diagram for edu.cmu.hcii.calo.model.ScheduleItem:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.model.ScheduleItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a single item in a schedule, to be visualized by the SchedulePane.

Author:
Will Haines


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.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.model.ScheduleItem.ScheduleItem ( boolean  caloAdded,
Calendar  startTime,
Calendar  endTime 
)

Constructs a ScheduleItem.

Parameters:
caloAdded whether CALO added this item
startTime when this item starts
endTime when this item ends


Member Function Documentation

float edu.cmu.hcii.calo.model.ScheduleItem.getDurationMinutes (  ) 

Returns the number of (possibly fractional) minutes between the start and end of the scheduled item.

Returns:
the number of minutes between the start and end

Calendar edu.cmu.hcii.calo.model.ScheduleItem.getEndTime (  ) 

Acessor method for endTime.

Returns:
the value of endTime

String edu.cmu.hcii.calo.model.ScheduleItem.getName (  ) 

Accessor method for name.

Returns:
the value of name

Calendar edu.cmu.hcii.calo.model.ScheduleItem.getStartTime (  ) 

Acessor method for startTime.

Returns:
the value of 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.

Parameters:
newEndTime the end time to set

void edu.cmu.hcii.calo.model.ScheduleItem.setHasReminder ( boolean  hasReminder  ) 

Sets whether this ScheduleItem has an associated reminder.

Parameters:
hasReminder true if this item has a reminder, false otherwise

void edu.cmu.hcii.calo.model.ScheduleItem.setName ( String  name  ) 

Setter method for name.

Parameters:
name the name to set

void edu.cmu.hcii.calo.model.ScheduleItem.setProject ( Project  project  ) 

Sets the project associated with this ScheduleItem, if any.

Parameters:
project the project to set

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.

Parameters:
newStartTime the start time to set


Member Data Documentation

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.

Project edu.cmu.hcii.calo.model.ScheduleItem.project [private]

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.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:17 2007 for CALO by  doxygen 1.5.2