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

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

public class TimeTableSelectByAttributeValues
extends java.lang.Object

basic manipulator that selects all elements in the timetable that have all the listed pairs of attribute types and values.

Author:
urosjovanovic

Constructor Summary
TimeTableSelectByAttributeValues()
           
 
Method Summary
static boolean conformsTo(TTElm elm, java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
          check if all constraints are met with the given timetable element.
static boolean exists(TimeTable tt, java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
           
static java.util.ArrayList<TTElm> select(java.util.ArrayList<TTElm> selection, java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
          make an attribute selection out of another selection.
static java.util.ArrayList<TTElm> select(TimeTable tt, java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
          returns the set of elements that conform to the constraints (the values of attributes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeTableSelectByAttributeValues

public TimeTableSelectByAttributeValues()
Method Detail

conformsTo

public static boolean conformsTo(TTElm elm,
                                 java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
check if all constraints are met with the given timetable element.

Parameters:
elm -
constraints -
Returns:

select

public static java.util.ArrayList<TTElm> select(TimeTable tt,
                                                java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
returns the set of elements that conform to the constraints (the values of attributes).

Parameters:
tt -
constraints -
Returns:

select

public static java.util.ArrayList<TTElm> select(java.util.ArrayList<TTElm> selection,
                                                java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)
make an attribute selection out of another selection.

Parameters:
selection -
constraints -
Returns:

exists

public static boolean exists(TimeTable tt,
                             java.util.Hashtable<java.lang.Class<?>,java.lang.Object> constraints)