eu.xtreemos.xosd.localallocmgr.attributes.operations
Class AvailableAmountCheck

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.attributes.operations.AvailableAmountCheck
All Implemented Interfaces:
IAttributeRelationCheck

public class AvailableAmountCheck
extends java.lang.Object
implements IAttributeRelationCheck

Used for determening whether there is room for needed amount. The max amount is predefined, the other current amounts are from ttelms.

Author:
uros

Field Summary
private  MaxAmount maxAmount
           
private  java.lang.Class<?> op1type
           
private  java.lang.Class<?> op2type
           
 
Constructor Summary
AvailableAmountCheck(MaxAmount max)
           
 
Method Summary
 java.lang.Class<?> getOp1Type()
           
 java.lang.Class<?> getOp2Type()
           
 boolean isRelated(IAttribute<?> currAmount, IAttribute<?> additionalAmount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxAmount

private MaxAmount maxAmount

op1type

private java.lang.Class<?> op1type

op2type

private java.lang.Class<?> op2type
Constructor Detail

AvailableAmountCheck

public AvailableAmountCheck(MaxAmount max)
Method Detail

isRelated

public boolean isRelated(IAttribute<?> currAmount,
                         IAttribute<?> additionalAmount)
Specified by:
isRelated in interface IAttributeRelationCheck

getOp1Type

public java.lang.Class<?> getOp1Type()
Specified by:
getOp1Type in interface IAttributeRelationCheck

getOp2Type

public java.lang.Class<?> getOp2Type()
Specified by:
getOp2Type in interface IAttributeRelationCheck