Class VarSpecLeafCollect
- java.lang.Object
-
- org.proforma.variability.transfer.VarSpecNode
-
- org.proforma.variability.transfer.VarSpecLeaf
-
- org.proforma.variability.transfer.VarSpecLeafCollect
-
- All Implemented Interfaces:
Serializable
public class VarSpecLeafCollect extends VarSpecLeaf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VarSpecLeafCollect()
VarSpecLeafCollect(VarSpecLeafCollect other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VarSpecLeafCollect
clone()
protected org.proforma.variability.transfer.VarSpecNode.DefRefCollector
collectDefRefs()
Can be called only when all children are present.int
dim()
List<V>
getChoices()
CVp
getEffectiveCVp()
protected void
prettyPrint(PrintStream out, String prefix)
protected void
pushInheritedCVpToChildren(CVp inheritedCVp)
void
setChoices(List<V> choices)
void
setParent(VarSpecNode parent)
long
sizeLowerBound()
protected void
validateNewChild(VarSpecNode child)
-
Methods inherited from class org.proforma.variability.transfer.VarSpecLeaf
getChildren, getCVp, setChildren, setCVp
-
Methods inherited from class org.proforma.variability.transfer.VarSpecNode
afterUnmarshal, collect, collectAndValidateAllDefsAndRefs, collectGroup, combine, combineGroup, define, deriveCollect, deriveVal, endBuild, endBuildTable, endCollectGroup, endCombineGroup, endDefine, findDef, getDebugId, getEffectiveVp, getEffectiveVpIndex, getLastChild, getNonDefineChildren, getParent, getRoot, numNonDefineChildren, prettyPrint, prettyPrint, range, range, range, ref, toString, val
-
-
-
-
Constructor Detail
-
VarSpecLeafCollect
public VarSpecLeafCollect()
-
VarSpecLeafCollect
public VarSpecLeafCollect(VarSpecLeafCollect other)
-
-
Method Detail
-
clone
public VarSpecLeafCollect clone()
- Specified by:
clone
in classVarSpecNode
-
collectDefRefs
protected org.proforma.variability.transfer.VarSpecNode.DefRefCollector collectDefRefs()
Can be called only when all children are present.- Overrides:
collectDefRefs
in classVarSpecNode
-
pushInheritedCVpToChildren
protected void pushInheritedCVpToChildren(CVp inheritedCVp)
- Specified by:
pushInheritedCVpToChildren
in classVarSpecNode
-
sizeLowerBound
public long sizeLowerBound()
- Specified by:
sizeLowerBound
in classVarSpecNode
- Returns:
- the number of tuples in this set.
-
dim
public int dim()
- Specified by:
dim
in classVarSpecNode
-
getEffectiveCVp
public CVp getEffectiveCVp()
- Specified by:
getEffectiveCVp
in classVarSpecNode
-
setParent
public void setParent(VarSpecNode parent)
- Overrides:
setParent
in classVarSpecNode
- Parameters:
parent
- parent node (or null for the root)
-
validateNewChild
protected void validateNewChild(VarSpecNode child) throws IllegalArgumentException
- Specified by:
validateNewChild
in classVarSpecNode
- Throws:
IllegalArgumentException
-
prettyPrint
protected void prettyPrint(PrintStream out, String prefix)
- Specified by:
prettyPrint
in classVarSpecNode
-
-