Package com.scalagent.scheduler
Class ScheduleItem
- java.lang.Object
-
- com.scalagent.scheduler.ScheduleItem
-
- All Implemented Interfaces:
Serializable
public class ScheduleItem extends Object implements Serializable
Implements a double linked list ofScheduleEventobjects. Both ends are marked with anullvalue. Events are ordered in increasing order of dates.- See Also:
Scheduler,ScheduleEvent, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Datedatenext schedule date(package private) ScheduleEventeventmay be of a derived class(package private) ScheduleItemnextnext item, null terminated(package private) ScheduleItemprevprevious item, null terminatedprivate static longserialVersionUIDdefine serialVersionUID for interoperability(package private) ScheduleTasktaskthe schedule task
-
Constructor Summary
Constructors Constructor Description ScheduleItem(ScheduleEvent event, ScheduleTask task)Creates an item.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
event
ScheduleEvent event
may be of a derived class
-
date
Date date
next schedule date
-
prev
ScheduleItem prev
previous item, null terminated
-
next
ScheduleItem next
next item, null terminated
-
task
ScheduleTask task
the schedule task
-
-
Constructor Detail
-
ScheduleItem
public ScheduleItem(ScheduleEvent event, ScheduleTask task)
Creates an item.- Parameters:
event- event to schedule.task- task to execute.
-
-