eu.xtreemos.xosd.localallocmgr.migrations
Class TimeTableState4RemoveByAttrib
java.lang.Object
eu.xtreemos.xosd.localallocmgr.migrations.TimeMachineItem
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeAttrExclusion
private static TimeAttrExclusion timeAttrExclusion
states
private SimpleTransaction states
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
restore
public void restore()
throws AttributeConformanceException
- Specified by:
restore
in class TimeMachineItem
- Throws:
AttributeConformanceException