eu.xtreemos.xosd.localallocmgr.basic.manipulators
Class TimeTableSelectByTime

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.basic.manipulators.TimeTableSelectByTime

public class TimeTableSelectByTime
extends java.lang.Object


Constructor Summary
TimeTableSelectByTime()
           
 
Method Summary
static java.util.ArrayList<TTElm> select(TimeTable tt, java.util.GregorianCalendar from, java.util.GregorianCalendar to)
          selects all elements between from and to, but only if there are such elements that start with from and one that ends with to.
static java.util.ArrayList<TTElm> selectBefore(TimeTable tt, java.util.GregorianCalendar limit)
          selects all elements that end before given time limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeTableSelectByTime

public TimeTableSelectByTime()
Method Detail

select

public static java.util.ArrayList<TTElm> select(TimeTable tt,
                                                java.util.GregorianCalendar from,
                                                java.util.GregorianCalendar to)
selects all elements between from and to, but only if there are such elements that start with from and one that ends with to. Otherwise, empty list is returned.

Parameters:
tt -
from -
to -
Returns:
Throws:
AttributeConformanceException

selectBefore

public static java.util.ArrayList<TTElm> selectBefore(TimeTable tt,
                                                      java.util.GregorianCalendar limit)
selects all elements that end before given time limit. USAGE: this is used for pruning the timetable, for example, to remove all finished elements. the returned array can be used for notification which elements were removed.

Parameters:
tt -
limit -
Returns: