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

java.lang.Object
  extended by org.ogf.graap.wsag.api.types.WSAGXmlType
      extended by org.ogf.graap.wsag.api.types.AgreementOfferType
          extended by org.ogf.graap.wsag.samples.actions.SampleAgreementOffer
All Implemented Interfaces:
AgreementOffer

public class SampleAgreementOffer
extends AgreementOfferType

SampleNegotiationAgreementOffer

Author:
hrasheed

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
WSAGXmlType.Wsag4jObservable
 
Constructor Summary
SampleAgreementOffer(AgreementTemplateType template)
          Creates a SampleNegotiationAgreementOffer from a template.
SampleAgreementOffer(AgreementType offer)
          Creates a SampleNegotiationAgreementOffer from a offer.
SampleAgreementOffer(NegotiationOfferType negotiationOffer)
          Creates a SampleNegotiationAgreementOffer from a negotiation offer.
 
Method Summary
 ResourcesType getResourceDefinition()
           
 TimeConstraintType getTimeConstraint()
           
 
Methods inherited from class org.ogf.graap.wsag.api.types.AgreementOfferType
getAgreementId, getContext, getInitiatorEPR, getName, getNoncriticalExtensions, getTerms, getXMLObject, setAgreementId, setContext, setInitiatorEPR, setName, setNoncriticalExtensions, 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

SampleAgreementOffer

public SampleAgreementOffer(AgreementTemplateType template)
Creates a SampleNegotiationAgreementOffer from a template.

Parameters:
template - the XML representation of the template

SampleAgreementOffer

public SampleAgreementOffer(NegotiationOfferType negotiationOffer)
Creates a SampleNegotiationAgreementOffer from a negotiation offer.

Parameters:
negotiationOffer - the XML representation of the negotiation offer

SampleAgreementOffer

public SampleAgreementOffer(AgreementType offer)
Creates a SampleNegotiationAgreementOffer from a offer.

Parameters:
offer - 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.