eu.xtreemos.xosd.localallocmgr.migrations
Class TimeTableState4RemoveByAttrib

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.migrations.TimeMachineItem
      extended by eu.xtreemos.xosd.localallocmgr.migrations.TimeTableState4RemoveByAttrib

public class TimeTableState4RemoveByAttrib
extends TimeMachineItem

stores removed objects - the ones with proper attributes. New objects with these same attributes are created and stored. When restored, just add these objects to the timetable.

Author:
urosjovanovic

Field Summary
private  SimpleTransaction states
           
private static TimeAttrExclusion timeAttrExclusion
           
 
Fields inherited from class eu.xtreemos.xosd.localallocmgr.migrations.TimeMachineItem
origTT
 
Constructor Summary
TimeTableState4RemoveByAttrib(TimeTable tt, TTElm byAttrib)
          all elements that are within the time limits of the byAttrib element come into question.
 
Method Summary
 void restore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeAttrExclusion

private static TimeAttrExclusion timeAttrExclusion

states

private SimpleTransaction states
Constructor Detail

TimeTableState4RemoveByAttrib

public TimeTableState4RemoveByAttrib(TimeTable tt,
                                     TTElm byAttrib)
                              throws AttributeConformanceException,
                                     NoSuchElementsException
all elements that are within the time limits of the byAttrib element come into question. The limit is that at some element must start at the exact same time as the the given one, and some element must end at exact same time as the given one. NOTE: object actually does the removing operation!!! TODO: must get this out Throws either NoSuch... exception if there are no elements that match the given time frame and constraints, or AttributeConformace... exception if there was an error during the attribute removing part.

Parameters:
tt -
byAttrib -
Throws:
AttributeConformanceException
NoSuchElementsException
Method Detail

restore

public void restore()
             throws AttributeConformanceException
Specified by:
restore in class TimeMachineItem
Throws:
AttributeConformanceException