at.dms.kjc.spacedynamic
Class CircularSchedule

java.lang.Object
  extended by at.dms.kjc.spacedynamic.CircularSchedule

public class CircularSchedule
extends Object

A little class to encode a small circular schedule, it has an internal index that is mod'ed at the end of the list when retrieving.

Author:
mgordon

Constructor Summary
CircularSchedule(FlatNode[] objs)
           
 
Method Summary
 boolean isHead()
           
 FlatNode next()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CircularSchedule

public CircularSchedule(FlatNode[] objs)
Method Detail

next

public FlatNode next()
Returns:
The next node in the schedule.

size

public int size()
Returns:
The number of elements in this circular list.

isHead

public boolean isHead()
Returns:
true if the next element to retreive is the head of the schedule.

toString

public String toString()
Overrides:
toString in class Object