public class DispatchStackLayer extends Object implements Typed, Child<DispatchStack>, Configurable
DispatchStackLayer
adds functionality to a
DispatchStack
.
e.g. a retry layer (of type http://ns.taverna.org.uk/2010/scufl2/taverna#Failover) adds the functionality to retry an Activity if an invocation fails.
Constructor and Description |
---|
DispatchStackLayer()
Constructs a
DispatchStackLayer . |
DispatchStackLayer(DispatchStack parent,
URI configurableType)
Constructs a
DispatchStackLayer for the specified
DispatchStack with the specified type. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
URI |
getConfigurableType()
Returns the type of the
DispatchStackLayer . |
DispatchStack |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setConfigurableType(URI type)
Sets the type of the
DispatchStackLayer . |
void |
setParent(DispatchStack parent)
Sets the parent of this workflow bean.
|
String |
toString() |
public DispatchStackLayer()
DispatchStackLayer
.public DispatchStackLayer(DispatchStack parent, URI configurableType)
DispatchStackLayer
for the specified
DispatchStack
with the specified type.parent
- the DispatchStack
to add the
DispatchStackLayer
toconfigurableType
- the type of the DispatchStackLayer
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.public URI getConfigurableType()
DispatchStackLayer
.getConfigurableType
in interface Typed
DispatchStackLayer
public DispatchStack getParent()
Child
null
if it is orphan.getParent
in interface Child<DispatchStack>
null
if it is orphanpublic void setConfigurableType(URI type)
DispatchStackLayer
.setConfigurableType
in interface Typed
type
- the type of the DispatchStackLayer
public void setParent(DispatchStack parent)
Child
Setting the parent would normally also add the object to the relevant collection in the parent if it does not already exist there.
If the child has an existing, object-identity different parent, the child will first be removed from the parent collection if it exists there.
Note:If the child is Named
the parent collection will be a
NamedSet
. This implicit insertion would overwrite any conflicting sibling with the
same Named.getName()
- to avoid this, add the child to the parent collection by using
NamedSet.addWithUniqueName(Named)
before setting the parent.
setParent
in interface Child<DispatchStack>
parent
- the parent of this workflow beanCopyright © 2013 myGrid. All rights reserved.