Class VarSpecNode
java.lang.Object
org.proforma.variability.transfer.VarSpecNode
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
VarSpecInnerNode,VarSpecLeaf
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent) Postprocessing sets parent relationshipsabstract VarSpecNodeclone()protected voidThis method is called once by the root node.protected org.proforma.variability.transfer.VarSpecNode.DefRefCollectorCan be called only when all children are present.collectGroup(String... keys) combineGroup(String... keys) deriveCollect(String jsSource) abstract intdim()endBuild()protected VarSpecNodeDefabstract List<VarSpecNode>abstract CVpgetCVp()protected Stringabstract CVpgetEffectiveVp(String key) intReturns the last child node.getRoot()protected intvoidvoidprettyPrint(PrintStream out) protected abstract voidprettyPrint(PrintStream out, String prefix) protected abstract voidpushInheritedCVpToChildren(CVp inheritedCVp) abstract voidsetChildren(List<VarSpecNode> children) abstract voidvoidsetParent(VarSpecNode parent) abstract longtoString()protected abstract voidvalidateNewChild(VarSpecNode child)
-
Constructor Details
-
VarSpecNode
public VarSpecNode() -
VarSpecNode
-
-
Method Details
-
clone
-
getDebugId
-
getChildren
-
setChildren
-
getCVp
-
setCVp
-
collectDefRefs
protected org.proforma.variability.transfer.VarSpecNode.DefRefCollector collectDefRefs()Can be called only when all children are present. -
findDef
-
afterUnmarshal
Postprocessing sets parent relationships -
collectAndValidateAllDefsAndRefs
protected void collectAndValidateAllDefsAndRefs()This method is called once by the root node. -
pushInheritedCVpToChildren
-
sizeLowerBound
public abstract long sizeLowerBound()- Returns:
- the number of tuples in this set.
-
dim
public abstract int dim() -
getEffectiveCVp
-
getRoot
-
getParent
- Returns:
- parent node (null for the root)
-
setParent
- Parameters:
parent- parent node (or null for the root)
-
getEffectiveVpIndex
-
getEffectiveVp
-
getLastChild
Returns the last child node. -
getNonDefineChildren
-
numNonDefineChildren
protected int numNonDefineChildren() -
endBuild
-
endBuildTable
-
define
-
endDefine
-
collectGroup
-
endCollectGroup
-
combineGroup
-
endCombineGroup
-
combine
-
ref
-
collect
-
range
-
range
-
range
-
val
-
deriveVal
-
deriveCollect
-
validateNewChild
- Throws:
IllegalArgumentException
-
prettyPrint
public void prettyPrint() -
prettyPrint
-
prettyPrint
-
toString
-