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

java.lang.Object
  extended by java.util.Observable
      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

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
processTemplate, validate
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
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 Fraunhofer Institute SCAI. All Rights Reserved.