org.iids.aos.locationmanager.negotiationmodule
Class AgentScapeDCNegotiationModule

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

public class AgentScapeDCNegotiationModule
extends AbstractModule
implements AgentScapeDCNegotiationInterface


Field Summary
static java.lang.String COMBINED_OFFER
           
 
Constructor Summary
AgentScapeDCNegotiationModule(Communicator comm)
           
 
Method Summary
 AgreementOffer acceptLease(java.lang.String leaseIdentifier)
           
 void addHMinterface(java.lang.String name, HostManager interfaceImplementer)
          To be called by the object that instatiates this module, to add interfaces to host managers to the module.
 HostManager getHMintf(java.lang.String name)
           
 java.lang.Object[] getHMintfNames()
           
 AgentScapeDCLeaseManagement getLeaseManagement()
           
 Address getMyAddress()
           
 AgentScapeDCRequestProcessor getRequestProcessor()
           
 AgentScapeDCTemplateManagement getTemplateManagement()
           
 boolean isStarted()
           
 void ping(java.lang.Integer ref)
           
 void rejectLease(java.lang.String leaseIdentifier)
           
 void removeHMinterface(java.lang.String name)
           
 AgreementOffer requestLease(AgreementOffer leaseRequest)
          Stores request from application in list of incoming requests, for later processing.
 AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
          unsupported in this version.
 TemplateList requestTemplates()
           
 void start()
           
 void 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
 

Field Detail

COMBINED_OFFER

public static final java.lang.String COMBINED_OFFER
See Also:
Constant Field Values
Constructor Detail

AgentScapeDCNegotiationModule

public AgentScapeDCNegotiationModule(Communicator comm)
Method Detail

ping

public void ping(java.lang.Integer ref)

getTemplateManagement

public AgentScapeDCTemplateManagement getTemplateManagement()

getRequestProcessor

public AgentScapeDCRequestProcessor getRequestProcessor()

getLeaseManagement

public AgentScapeDCLeaseManagement getLeaseManagement()

getMyAddress

public Address getMyAddress()

addHMinterface

public void addHMinterface(java.lang.String name,
                           HostManager interfaceImplementer)
To be called by the object that instatiates this module, to add interfaces to host managers to the module.

Parameters:
name -
interfaceImplementer -

removeHMinterface

public void removeHMinterface(java.lang.String name)

getHMintfNames

public java.lang.Object[] getHMintfNames()

getHMintf

public HostManager getHMintf(java.lang.String name)
                      throws java.lang.Exception
Throws:
java.lang.Exception

requestTemplates

public TemplateList requestTemplates()
Specified by:
requestTemplates in interface AgentScapeDCNegotiationInterface
Returns:
xml containing templates, or an empty string in case of trouble

requestLease

public AgreementOffer requestLease(AgreementOffer leaseRequest)
Stores request from application in list of incoming requests, for later processing. Returns a marshalled AgreementOffer ( in the form of a String ).

Specified by:
requestLease in interface AgentScapeDCNegotiationInterface

requestLeaseStatus

public AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
unsupported in this version.

Specified by:
requestLeaseStatus in interface AgentScapeDCNegotiationInterface
Parameters:
leaseIdentifier -
Returns:
unsupported in this version

acceptLease

public AgreementOffer acceptLease(java.lang.String leaseIdentifier)
Specified by:
acceptLease in interface AgentScapeDCNegotiationInterface

rejectLease

public void rejectLease(java.lang.String leaseIdentifier)

start

public void start()
Specified by:
start in interface Module

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Module

stop

public void stop()
Specified by:
stop in interface Module


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