org.iids.aos.locationmanager.negotiationmodule
Class AgentScapeDCLeaseManagement
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.systemservices.module.AbstractRunnableModule
org.iids.aos.locationmanager.negotiationmodule.AgentScapeDCLeaseManagement
- All Implemented Interfaces:
- java.lang.Runnable, Module
public class AgentScapeDCLeaseManagement
- extends AbstractRunnableModule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentScapeDCLeaseManagement
public AgentScapeDCLeaseManagement(AgentScapeDCNegotiationModule parent,
Communicator comm)
pulse
public void pulse()
- Specified by:
pulse in class AbstractRunnableModule
shutdown
public void shutdown()
- Description copied from class:
AbstractRunnableModule
- Each abstract RUNNABLE module implementation must implement the shutdown
method, which is called whenever the module is stopped (by
AbstractRunnableModule.stop())
from the superclass.
- Specified by:
shutdown in class AbstractRunnableModule
acceptLease
public AgreementOffer acceptLease(java.lang.String leaseIdentifier)
throws LeaseManagementException
- Lease accepted by agent, notify offering host of acceptance
- Parameters:
leaseIdentifier -
- Returns:
- an AgreementOffer based on the lease
- Throws:
LeaseManagementException
addLeaseProposal
public void addLeaseProposal(AgreementOffer ao)
- Used by the RequestProcessor to add a lease proposal which is to be
accepted by an agent.
- Parameters:
ao -
containsLease
public boolean containsLease(java.lang.String leaseIdentifier)
getLease
public AgreementOffer getLease(java.lang.String leaseIdentifier)
throws LeaseManagementException
- Throws:
LeaseManagementException
rejectLease
public void rejectLease(java.lang.String leaseIdentifier)
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.