|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.locationmanager.negotiationmodule.domainpolicies.DomainPolicy
org.iids.aos.locationmanager.negotiationmodule.domainpolicies.runtimeDomainPolicy
public class runtimeDomainPolicy
Domain wide policy for handling requests for the AgentScape runtime resource. Current tempalte policy is: return all. Current host offer selection policy is: round robin, for non-overlapping groups of hosts.
| Constructor Summary | |
|---|---|
runtimeDomainPolicy()
|
|
| Method Summary | |
|---|---|
java.util.Vector<AgreementOffer> |
applyHostOfferSelectionPolicy(AgreementOffer ao,
java.util.Vector<AgreementOffer> leaseOffers)
Current policy: randomly select one of the offers |
java.util.Vector<Template> |
applyTemplateSelectionPolicy(java.util.Vector<Template> templates,
AgreementOffer request)
Policy is: keep a list of known HMs in memory. |
static void |
main(java.lang.String[] args)
Main method for testing this domain policy |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public runtimeDomainPolicy()
| Method Detail |
|---|
public java.util.Vector<Template> applyTemplateSelectionPolicy(java.util.Vector<Template> templates,
AgreementOffer request)
throws PolicyException
applyTemplateSelectionPolicy in class DomainPolicytemplates - request -
PolicyException
public java.util.Vector<AgreementOffer> applyHostOfferSelectionPolicy(AgreementOffer ao,
java.util.Vector<AgreementOffer> leaseOffers)
applyHostOfferSelectionPolicy in class DomainPolicyleaseOffers -
public static void main(java.lang.String[] args)
args - This method creates a number of dummy templates, and in each cycle passes
a random subset of these templates to the policy. The number of assigned requests
to each host is shown in a bar graphpublic void reset()
reset in class DomainPolicy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||