eu.xtreemos.xosd.localallocmgr.frontend
Class TTElmRequest
java.lang.Object
eu.xtreemos.xosd.localallocmgr.frontend.TTElmRequest
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- TTElmRequestAdd, TTElmRequestDelay, TTElmRequestEcho, TTElmRequestRemove, TTElmRequestRemoveObject
public abstract class TTElmRequest
- extends java.lang.Object
- implements java.io.Serializable
Request, that is set directly on an existing time table
element (TTElm). The request is determined by the action
on the ttelm/timetable. Each type of the request
is derived from this class, with a proper execute method
implementation.
request with a direct TTElm, that is created outside
TODO: maybe a factory for the most used types of TTElms?
- Author:
- urosjovanovic
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESID_FULLDESC_STRING
public static final java.lang.String RESID_FULLDESC_STRING
- See Also:
- Constant Field Values
resourceID
protected java.lang.String resourceID
ttelm
protected TTElm ttelm
type
public RequestTypes type
TTElmRequest
public TTElmRequest(java.lang.String resourceID,
TTElm ttelm)
type
public RequestTypes type()
- Type of the request, if one wishes to use such info instead of
proper reflection/oop.
- Returns:
resourceID
public java.lang.String resourceID()
- Reference about the resource in question.
- Returns:
addReservationID
public void addReservationID(java.lang.String id)
- only add reservation in case of new additions,
otherwise, leave the ids of the reservation
intact.
- Parameters:
id
-
removeReservationID
public void removeReservationID(java.lang.String id)
execute
public abstract boolean execute(TimeTable tt)
getTtelm
public TTElm getTtelm()