org.iids.aos.agentserver
Class AgentNegotiationLib

java.lang.Object
  extended by org.iids.aos.agentserver.AgentNegotiationLib
All Implemented Interfaces:
AgentNegotiationLibInterface

public class AgentNegotiationLib
extends java.lang.Object
implements AgentNegotiationLibInterface

Implements the negotiation calls made available to the agents via the AgentScapeImpl.

UPDATE (rjtimmer): all calls travel through the lookup cache. Cleaned up all the mess that used to be here (which was quite terrible).


Constructor Summary
AgentNegotiationLib(Communicator comm, AsLookupService ls)
           
 
Method Summary
 AgreementOffer acceptLease(AgentScapeID locationID, java.lang.String leaseIdentifier)
           
 AgreementOffer requestLease(AgentScapeID locationManagerID, AgreementOffer leaseRequest)
           
 AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
           
 TemplateList requestTemplates(AgentScapeID locationManagerID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentNegotiationLib

public AgentNegotiationLib(Communicator comm,
                           AsLookupService ls)
Method Detail

requestTemplates

public TemplateList requestTemplates(AgentScapeID locationManagerID)
                              throws NegotiationLibException
Specified by:
requestTemplates in interface AgentNegotiationLibInterface
Throws:
NegotiationLibException

requestLease

public AgreementOffer requestLease(AgentScapeID locationManagerID,
                                   AgreementOffer leaseRequest)
                            throws NegotiationLibException
Specified by:
requestLease in interface AgentNegotiationLibInterface
Throws:
NegotiationLibException

acceptLease

public AgreementOffer acceptLease(AgentScapeID locationID,
                                  java.lang.String leaseIdentifier)
                           throws NegotiationLibException
Specified by:
acceptLease in interface AgentNegotiationLibInterface
Throws:
NegotiationLibException

requestLeaseStatus

public AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
Specified by:
requestLeaseStatus in interface AgentNegotiationLibInterface


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