eu.xtreemos.xosd.localallocmgr.frontend
Class TTElmRequest

java.lang.Object
  extended by 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

Field Summary
static java.lang.String RESID_FULLDESC_STRING
           
protected  java.lang.String resourceID
           
protected  TTElm ttelm
           
 RequestTypes type
           
 
Constructor Summary
TTElmRequest(java.lang.String resourceID, TTElm ttelm)
           
 
Method Summary
 void addReservationID(java.lang.String id)
          only add reservation in case of new additions, otherwise, leave the ids of the reservation intact.
abstract  boolean execute(TimeTable tt)
           
 TTElm getTtelm()
           
 void removeReservationID(java.lang.String id)
           
 java.lang.String resourceID()
          Reference about the resource in question.
 RequestTypes type()
          Type of the request, if one wishes to use such info instead of proper reflection/oop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TTElmRequest

public TTElmRequest(java.lang.String resourceID,
                    TTElm ttelm)
Method Detail

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()