org.ogf.graap.wsag.api.pattern
Class AdvanceReservationPattern
java.lang.Object
org.ogf.graap.wsag.api.pattern.AbstractPattern
org.ogf.graap.wsag.api.pattern.AdvanceReservationPattern
- All Implemented Interfaces:
- IPattern
public class AdvanceReservationPattern
- extends AbstractPattern
AdvanceReservationPattern
An advance reservation pattern includes a service description term that defines the earliest start time of
the overall service. The example below illustrates the structure of an advance reservation template.
<wsag:Template wsag:TemplateId="1"
xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement">
<wsag:Name>ADAVANCE_RESERVATION_TEMPLATE</wsag:Name>
<wsag:Context>
<wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
<wsag:TemplateId>1</wsag:TemplateId>
<wsag:TemplateName>ADAVANCE_RESERVATION_TEMPLATE</wsag:TemplateName>
</wsag:Context>
<wsag:Terms>
<wsag:All>
<wsag:ServiceDescriptionTerm wsag:Name="SDT_1"
wsag:ServiceName="SERVICE_1">
(Put your service description terms here) ....
</wsag:ServiceDescriptionTerm>
...
<wsag:ServiceDescriptionTerm wsag:Name="TIME_CONSTRAINT_SDT"
wsag:ServiceName="SERVICE_1">
<wsag-tc:TimeConstraint
xmlns:wsag-tc="http://schemas.wsag4j.org/2009/07/wsag4j-scheduling-extensions">
<wsag-tc:StartTime>2010-06-24T02:00:00</wsag-tc:StartTime>
</wsag-tc:TimeConstraint>
</wsag:ServiceDescriptionTerm>
</wsag:All>
</wsag:Terms>
<wsag:CreationConstraints />
</wsag:Template>
- Author:
- Oliver Waeldrich
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvanceReservationPattern
public AdvanceReservationPattern(TermCompositorType termCompositor)
- Instantiates the advance reservation pattern on a given term compositor.
- Parameters:
termCompositor
- the term compositor
initialize
protected void initialize()
- initializes the pattern object after creation
getTimeConstraint
public TimeConstraintType getTimeConstraint()
- Returns:
- the timeConstraint
setTimeConstraintXPath
public void setTimeConstraintXPath(String timeConstraintXPath)
- Parameters:
timeConstraintXPath
- the timeConstraintXPath to set
getTimeConstraintXPath
public String getTimeConstraintXPath()
- Returns:
- the timeConstraintXPath
Copyright © 2008-2012. All Rights Reserved.