org.ogf.graap.wsag.server.actions
Interface INegotiationAction

All Superinterfaces:
IActionHandler
All Known Implementing Classes:
AbstractNegotiationAction, NegotiatePendingAgreementAction, NegotiationUnsupportedAction, Sample1NegotiateAgreementAction, Sample2NegotiateAgreementAction, SampleNegotiateAction

public interface INegotiationAction
extends IActionHandler

A negotiation action handler implements the functionality to create negotiate agreement offers based on a template. It is associated with a specific agreement factory action.

Author:
Oliver Waeldrich

Method Summary
 NegotiationOfferType[] negotiate(NegotiationOfferType quote, Map<String,Object> context)
          Negotiates an agreement offer.
 
Methods inherited from interface org.ogf.graap.wsag.server.actions.IActionHandler
getHandlerContext, initialize, setHandlerContext
 

Method Detail

negotiate

NegotiationOfferType[] negotiate(NegotiationOfferType quote,
                                 Map<String,Object> context)
                                 throws NegotiationException
Negotiates an agreement offer. For each negotiation offer, one or more counter proposals may be created. A negotiation request can comprise multiple negotiation offers. These offers are processed sequentially, sharing a common invocation context.

Parameters:
quote - the negotiation offer to process
context - the invocation context
Returns:
a set of counter offers
Throws:
NegotiationException - indicates an error during the negotiation process


Copyright © 2008-2012. All Rights Reserved.