public class CEConstraint extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CEConstraint.Segment |
protected static class |
CEConstraint.Universal |
| Modifier and Type | Field and Description |
|---|---|
protected Map<DapNode,List<DapAttribute>> |
attributes |
protected List<DapDimension> |
dimrefs |
protected DapDataset |
dmr |
protected List<DapEnum> |
enums |
static boolean |
EXPAND |
protected boolean |
finished |
protected List<DapGroup> |
groups |
protected Map<DapDimension,DapDimension> |
redef |
protected Map<DapDimension,Slice> |
redefslice |
protected List<DapDimension> |
refdims |
protected List<CEConstraint.Segment> |
variables |
| Constructor and Description |
|---|
CEConstraint() |
CEConstraint(DapDataset dmr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(DapNode node,
DapAttribute attr) |
void |
addRedef(DapDimension dim,
Slice slice) |
void |
addVariable(DapVariable var,
List<Slice> slices) |
protected void |
computedimensions()
Compute dimension related information
using slicing and redef info.
|
protected void |
computeenums()
Walk all the included variables and accumulate
the referenced enums
|
protected void |
computegroups()
Walk all the included declarations
and accumulate the set of referenced groups
|
protected void |
dumpvar(CEConstraint.Segment seg,
StringBuilder buf,
boolean forconstraint)
Recursive helper for tostring/toConstraintString
|
protected void |
expandCompoundTypes()
Locate each unexpanded Structure|Sequence and:
1.
|
protected int |
expansionCount(DapStructure struct)
Count the number of fields of a structure that
already in this view.
|
protected int |
findVariable(DapVariable var) |
CEConstraint |
finish(boolean expand)
Finish creating this Constraint.
|
DapDataset |
getDMR() |
DapDimension |
getRedefDim(DapDimension orig) |
static CEConstraint |
getUniversal(DapDataset dmr) |
protected CEConstraint.Segment |
getVariable(DapVariable var) |
List<Slice> |
getVariableSlices(DapVariable var) |
protected boolean |
isWholeStructure(DapStructure struct)
See if all the fields in this structure are part of the
view; this must be done recursively.
|
boolean |
references(DapNode node) |
String |
toConstraintString()
Convert the view to a constraint string suitable
for use in a URL, except not URL encoded.
|
String |
toString() |
public static final boolean EXPAND
protected DapDataset dmr
protected List<CEConstraint.Segment> variables
protected Map<DapDimension,Slice> redefslice
protected Map<DapNode,List<DapAttribute>> attributes
protected Map<DapDimension,DapDimension> redef
protected List<DapDimension> dimrefs
protected List<DapDimension> refdims
protected boolean finished
public CEConstraint()
public CEConstraint(DapDataset dmr)
public static CEConstraint getUniversal(DapDataset dmr)
public DapDataset getDMR()
public void addRedef(DapDimension dim, Slice slice)
public void addVariable(DapVariable var, List<Slice> slices)
public void addAttribute(DapNode node, DapAttribute attr)
public DapDimension getRedefDim(DapDimension orig)
public List<Slice> getVariableSlices(DapVariable var)
public boolean references(DapNode node)
public CEConstraint finish(boolean expand) throws DapException
expand - expand structures in the underlying viewDapExceptionpublic String toConstraintString()
protected void dumpvar(CEConstraint.Segment seg, StringBuilder buf, boolean forconstraint)
seg - buf - forconstraint - protected int findVariable(DapVariable var)
protected CEConstraint.Segment getVariable(DapVariable var)
protected boolean isWholeStructure(DapStructure struct)
protected void expandCompoundTypes()
DapExceptionprotected int expansionCount(DapStructure struct)
struct - the dapstructure to checkDapExceptionprotected void computedimensions()
throws DapException
DapExceptionprotected void computeenums()
protected void computegroups()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.