org.iids.aos.agentserver
Class AgentNegotiationLib
java.lang.Object
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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentNegotiationLib
public AgentNegotiationLib(Communicator comm,
AsLookupService ls)
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.