Class VarSpecRoot
- java.lang.Object
-
- org.proforma.variability.transfer.VarSpecNode
-
- org.proforma.variability.transfer.VarSpecInnerNode
-
- org.proforma.variability.transfer.VarSpecRoot
-
- All Implemented Interfaces:
Serializable
public class VarSpecRoot extends VarSpecInnerNode
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VarSpecRoot()
VarSpecRoot(VarSpecRoot other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VarSpecRoot
build(Vp... vps)
VarSpecRoot
clone()
int
dim()
VarSpecRoot
endBuild()
CVp
getCVp()
CVp
getEffectiveCVp()
protected void
prettyPrint(PrintStream out, String prefix)
String
prettyPrintToString()
protected void
pushInheritedCVpToChildren(CVp dummy)
void
setChildren(List<VarSpecNode> children)
void
setCVp(CVp cvp)
long
sizeLowerBound()
protected void
validateNewChild(VarSpecNode child)
-
Methods inherited from class org.proforma.variability.transfer.VarSpecInnerNode
getChildren, getFirstNonDefineChild
-
Methods inherited from class org.proforma.variability.transfer.VarSpecNode
afterUnmarshal, collect, collectAndValidateAllDefsAndRefs, collectDefRefs, collectGroup, combine, combineGroup, define, deriveCollect, deriveVal, endBuildTable, endCollectGroup, endCombineGroup, endDefine, findDef, getDebugId, getEffectiveVp, getEffectiveVpIndex, getLastChild, getNonDefineChildren, getParent, getRoot, numNonDefineChildren, prettyPrint, prettyPrint, range, range, range, ref, setParent, toString, val
-
-
-
-
Constructor Detail
-
VarSpecRoot
public VarSpecRoot()
-
VarSpecRoot
public VarSpecRoot(VarSpecRoot other)
-
-
Method Detail
-
clone
public VarSpecRoot clone()
- Specified by:
clone
in classVarSpecNode
-
pushInheritedCVpToChildren
protected void pushInheritedCVpToChildren(CVp dummy)
- Specified by:
pushInheritedCVpToChildren
in classVarSpecNode
-
getCVp
public CVp getCVp()
- Overrides:
getCVp
in classVarSpecInnerNode
- Returns:
- list of variation points.
- Throws:
UnsupportedOperationException
- if this is aVarSpecLeafRef
orVarSpecLeafCombine
.
-
setCVp
public void setCVp(CVp cvp)
- Overrides:
setCVp
in classVarSpecInnerNode
- Parameters:
cvp
- list of variation points- Throws:
UnsupportedOperationException
- if this is aVarSpecLeafRef
orVarSpecLeafCombine
.
-
setChildren
public void setChildren(List<VarSpecNode> children)
- Overrides:
setChildren
in classVarSpecInnerNode
- Parameters:
children
- list of child nodes
-
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
-
build
public static VarSpecRoot build(Vp... vps)
-
endBuild
public VarSpecRoot endBuild()
- Overrides:
endBuild
in classVarSpecNode
-
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
-
prettyPrintToString
public String prettyPrintToString()
-
-