com.scalagent.scheduler
Class ScheduleItem

java.lang.Object
  extended by com.scalagent.scheduler.ScheduleItem
All Implemented Interfaces:
java.io.Serializable

public class ScheduleItem
extends java.lang.Object
implements java.io.Serializable

Implements a double linked list of ScheduleEvent objects. Both ends are marked with a null value. Events are ordered in increasing order of dates.

See Also:
Scheduler, ScheduleEvent, Serialized Form

Field Summary
(package private)  java.util.Date date
          next schedule date
(package private)  ScheduleEvent event
          may be of a derived class
(package private)  ScheduleItem next
          next item, null terminated
(package private)  ScheduleItem prev
          previous item, null terminated
private static long serialVersionUID
          define serialVersionUID for interoperability
(package private)  ScheduleTask task
          the schedule task
 
Constructor Summary
ScheduleItem(ScheduleEvent event, ScheduleTask task)
          Creates an item.
 
Method Summary
 java.lang.String toString()
          Provides a string image for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

java.util.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.
Method Detail

toString

public java.lang.String toString()
Provides a string image for this object.

Overrides:
toString in class java.lang.Object
Returns:
a string image for this object


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.