eu.xtreemos.xosd.localallocmgr.attributes.handlers
Class TimeAttrHandler

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.attributes.handlers.TimeAttrHandler
All Implemented Interfaces:
IAttributeHandler

public class TimeAttrHandler
extends java.lang.Object
implements IAttributeHandler

handler for the start/end time attributes

Author:
urosjovanovic

Constructor Summary
TimeAttrHandler()
           
 
Method Summary
 boolean add(IAttribute<?> op1, IAttribute<?> op2)
          op1 is supposed to be represented by some of the *Amount attribute, representing the amount in milliseconds
 boolean canAdd(IAttribute<?> op1, IAttribute<?> op2)
           
 boolean canDelay(IAttribute<?> op1, IAttribute<?> op2)
           
 boolean canRemove(IAttribute<?> op1, IAttribute<?> op2)
          removal is not supported by the time attributes
 boolean delay(IAttribute<?> op1, IAttribute<?> op2)
          please use negative time (in ms) in order to start new element before the current one.
 boolean remove(IAttribute<?> op1, IAttribute<?> op2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeAttrHandler

public TimeAttrHandler()
Method Detail

add

public boolean add(IAttribute<?> op1,
                   IAttribute<?> op2)
op1 is supposed to be represented by some of the *Amount attribute, representing the amount in milliseconds

Specified by:
add in interface IAttributeHandler

canAdd

public boolean canAdd(IAttribute<?> op1,
                      IAttribute<?> op2)
Specified by:
canAdd in interface IAttributeHandler

canDelay

public boolean canDelay(IAttribute<?> op1,
                        IAttribute<?> op2)
Specified by:
canDelay in interface IAttributeHandler

canRemove

public boolean canRemove(IAttribute<?> op1,
                         IAttribute<?> op2)
removal is not supported by the time attributes

Specified by:
canRemove in interface IAttributeHandler

delay

public boolean delay(IAttribute<?> op1,
                     IAttribute<?> op2)
please use negative time (in ms) in order to start new element before the current one.

Specified by:
delay in interface IAttributeHandler

remove

public boolean remove(IAttribute<?> op1,
                      IAttribute<?> op2)
Specified by:
remove in interface IAttributeHandler