org.iids.aos.locationmanager.negotiationmodule
Class AgentScapeDCLeaseManagement

java.lang.Object
  extended by org.iids.aos.systemservices.module.AbstractModule
      extended by org.iids.aos.systemservices.module.AbstractRunnableModule
          extended by org.iids.aos.locationmanager.negotiationmodule.AgentScapeDCLeaseManagement
All Implemented Interfaces:
java.lang.Runnable, Module

public class AgentScapeDCLeaseManagement
extends AbstractRunnableModule


Constructor Summary
AgentScapeDCLeaseManagement(AgentScapeDCNegotiationModule parent, Communicator comm)
           
 
Method Summary
 AgreementOffer acceptLease(java.lang.String leaseIdentifier)
          Lease accepted by agent, notify offering host of acceptance
 void addLeaseProposal(AgreementOffer ao)
          Used by the RequestProcessor to add a lease proposal which is to be accepted by an agent.
 boolean containsLease(java.lang.String leaseIdentifier)
           
 AgreementOffer getLease(java.lang.String leaseIdentifier)
           
 void pulse()
           
 void rejectLease(java.lang.String leaseIdentifier)
           
 void shutdown()
          Each abstract RUNNABLE module implementation must implement the shutdown method, which is called whenever the module is stopped (by AbstractRunnableModule.stop()) from the superclass.
 
Methods inherited from class org.iids.aos.systemservices.module.AbstractRunnableModule
isStarted, run, start, stop
 
Methods inherited from class org.iids.aos.systemservices.module.AbstractModule
getCommunicator, getModuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentScapeDCLeaseManagement

public AgentScapeDCLeaseManagement(AgentScapeDCNegotiationModule parent,
                                   Communicator comm)
Method Detail

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.