Package dap4.core.ce
Class Universal
- java.lang.Object
-
- dap4.core.ce.CEConstraint
-
- dap4.core.ce.Universal
-
public class Universal extends CEConstraint
The Universal constraint is a constraint that includes everything in a DMR, even including items such as dimensions or enums that are defined but never used.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dap4.core.ce.CEConstraint
CEConstraint.Expand, CEConstraint.Segment
-
-
Field Summary
-
Fields inherited from class dap4.core.ce.CEConstraint
attributes, DEBUG, dimrefs, dmr, enums, expansion, finished, groups, PARSEDEBUG, redef, redefslice, refdims, segments, universals, variables
-
-
Constructor Summary
Constructors Constructor Description Universal()
Universal(DapDataset dmr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
build()
CEConstraint
finish()
Finish creating this Constraint; for Universal, this does nothing; the important stuff is in build().List<Slice>
getConstrainedSlices(DapVariable var)
boolean
isUniversal()
boolean
references(DapNode node)
Reference X matchstatic List<Slice>
universalSlices(DapVariable var)
-
Methods inherited from class dap4.core.ce.CEConstraint
addAttribute, addRedef, addVariable, compare, compile, computedimensions, computeenums, computegroups, contract, contractR, dumpvar, eval, expand, expansionCount, findSegment, findVariableIndex, getConstrainedDimensions, getDMR, getRedefDim, getUniversal, isWholeCompound, match, matches, release, setFilter, toConstraintString, toString
-
-
-
-
Constructor Detail
-
Universal
public Universal()
-
Universal
public Universal(DapDataset dmr) throws DapException
- Throws:
DapException
-
-
Method Detail
-
isUniversal
public boolean isUniversal()
- Overrides:
isUniversal
in classCEConstraint
-
finish
public CEConstraint finish() throws DapException
Finish creating this Constraint; for Universal, this does nothing; the important stuff is in build().- Overrides:
finish
in classCEConstraint
- Returns:
- this - fluent interface
- Throws:
DapException
-
build
protected void build() throws DapException
- Throws:
DapException
-
references
public boolean references(DapNode node)
Description copied from class:CEConstraint
Reference X match- Overrides:
references
in classCEConstraint
- Parameters:
node
- to test- Returns:
- true if node is referenced by this constraint
-
getConstrainedSlices
public List<Slice> getConstrainedSlices(DapVariable var) throws DapException
- Overrides:
getConstrainedSlices
in classCEConstraint
- Throws:
DapException
-
universalSlices
public static List<Slice> universalSlices(DapVariable var) throws DapException
- Throws:
DapException
-
-