org.ogf.graap.wsag.samples.actions
Class SampleNegotiationOffer

java.lang.Object
  extended by org.ogf.graap.wsag.api.types.WSAGXmlType
      extended by org.ogf.graap.wsag.api.types.NegotiationOfferTypeImpl
          extended by org.ogf.graap.wsag.samples.actions.SampleNegotiationOffer
All Implemented Interfaces:
NegotiationOffer

public class SampleNegotiationOffer
extends NegotiationOfferTypeImpl

SampleNegotiationOffer

Author:
hrasheed

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
WSAGXmlType.Wsag4jObservable
 
Constructor Summary
SampleNegotiationOffer(AgreementTemplateType template)
          Creates a sample offer based on a template.
SampleNegotiationOffer(NegotiationOfferType negotiationOffer)
          Creates a sample agreement offer based on a negotiation offer.
 
Method Summary
 ResourcesType getResourceDefinition()
           
 TimeConstraintType getTimeConstraint()
           
 
Methods inherited from class org.ogf.graap.wsag.api.types.NegotiationOfferTypeImpl
getAgreementId, getContext, getName, getNegotiationConstraints, getNegotiationOfferContext, getOfferId, getTerms, getXMLObject, setAgreementId, setContext, setName, setNegotiationConstraints, setNegotiationOfferContext, setOfferId, setTerms, validate
 
Methods inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
addObserver, countObservers, deleteObserver, deleteObservers, getObservable, hasChanged, notifyObservers, notifyObservers, processTemplate, setChanged, setObservable, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleNegotiationOffer

public SampleNegotiationOffer(AgreementTemplateType template)
Creates a sample offer based on a template.

Parameters:
template - the XML representation of the template

SampleNegotiationOffer

public SampleNegotiationOffer(NegotiationOfferType negotiationOffer)
Creates a sample agreement offer based on a negotiation offer.

Parameters:
negotiationOffer - the XML representation of the negotiation offer
Method Detail

getResourceDefinition

public ResourcesType getResourceDefinition()
Returns:
the resource definition
See Also:
ComputeResourcePattern.getResourceDefinition()

getTimeConstraint

public TimeConstraintType getTimeConstraint()
Returns:
the specified time constraints
See Also:
AdvanceReservationPattern.getTimeConstraint()


Copyright © 2008-2012. All Rights Reserved.