org.iids.aos.locationmanager.negotiationmodule.domainpolicies
Class CombinationPolicyContainer

java.lang.Object
  extended by org.iids.aos.locationmanager.negotiationmodule.domainpolicies.CombinationPolicyContainer

public class CombinationPolicyContainer
extends java.lang.Object

Created by IntelliJ IDEA. User: Administrator Date: 13-mrt-2006 Time: 9:33:59 To change this template use File | Settings | File Templates.


Constructor Summary
CombinationPolicyContainer()
           
 
Method Summary
 void addCombinationPolicy(java.lang.String serviceName, CombinationPolicy cp)
           
 AgreementOffer applyCombinationPolicies(java.util.Vector agreementOffers)
          combines the given list of agreementOffers of individual hosts into one single offer to give to the consumer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinationPolicyContainer

public CombinationPolicyContainer()
Method Detail

addCombinationPolicy

public void addCombinationPolicy(java.lang.String serviceName,
                                 CombinationPolicy cp)

applyCombinationPolicies

public AgreementOffer applyCombinationPolicies(java.util.Vector agreementOffers)
combines the given list of agreementOffers of individual hosts into one single offer to give to the consumer. Current implementation does a simple combination by adding all SDTs from all providers into the agreement. Ideally, the combination should present aggregated views on offered resources: (example: 2 energy resources should be added, and presented as one)

Parameters:
agreementOffers - The offers to combine in a single agreement offer.
Returns:
A new AgreementOffer with the combined offers.


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.