public class DotProduct extends ArrayList<IterationStrategyNode> implements IterationStrategyTopNode
modCount
Constructor and Description |
---|
DotProduct() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
WorkflowBean |
clone()
Create a deep clone of this bean.
|
boolean |
equals(Object o) |
IterationStrategyParent |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setParent(IterationStrategyParent newParent)
Sets the parent of this workflow bean.
|
String |
toString() |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
hashCode
containsAll
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 boolean equals(Object o)
equals
in interface Collection<IterationStrategyNode>
equals
in interface List<IterationStrategyNode>
equals
in class AbstractList<IterationStrategyNode>
public IterationStrategyParent getParent()
Child
null
if it is orphan.getParent
in interface Child<IterationStrategyParent>
null
if it is orphanpublic void setParent(IterationStrategyParent newParent)
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<IterationStrategyParent>
newParent
- the parent of this workflow beanpublic WorkflowBean clone()
WorkflowBean
The cloned bean will have equivalent properties as the original bean. Any
Child
beans which parent match this bean will be cloned as well
(recursively), non-child beans will remain the same. If this bean is a
Child
, the returned clone will not have a parent set.
Note that children whose Child.getParent()
is null
might not be cloned, to avoid this, use
Scufl2Tools.setParents(uk.org.taverna.scufl2.api.container.WorkflowBundle)
before cloning.
clone
in interface WorkflowBean
clone
in class ArrayList<IterationStrategyNode>
public String toString()
toString
in class AbstractCollection<IterationStrategyNode>
Copyright © 2013 myGrid. All rights reserved.