eu.xtreemos.xosd.localallocmgr.attributes.operations
Class AvailableAmountCheck
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxAmount
private MaxAmount maxAmount
op1type
private java.lang.Class<?> op1type
op2type
private java.lang.Class<?> op2type
AvailableAmountCheck
public AvailableAmountCheck(MaxAmount max)
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