Package org.aksw.jenax.constraint.util
Class VSpaceBase<T extends Comparable<T>,D>
java.lang.Object
org.aksw.jenax.constraint.util.VSpaceBase<T,D>
- Direct Known Subclasses:
NodeRanges
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the key set ofvscToRangeSetscovers all possible dimensions. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVSpaceBase(boolean isVscExhaustive) protectedVSpaceBase(boolean isVscExhaustive, Map<D, com.google.common.collect.RangeSet<T>> vscToRangeSets) -
Method Summary
Modifier and TypeMethodDescriptionvoidVSpaceBase<T,D> addEmptyDimension(D dimension) Add a new empty dimension.VSpaceBase<T,D> addOpenDimension(D dimension) Add a new unconstrained dimension.protected abstract DclassifyValueSpace(com.google.common.collect.Range<T> range) com.google.common.collect.RangeSet<T>getDimension(Object dimensionKey) May return null.com.google.common.collect.RangeSet<T>getOrCreateDimension(D dimension) booleanbooleanUnconstrained mode means that any valid range is considered enclosed by this oneVSpaceBase<T,D> removeDimension(Object dimensionKey) VSpaceBase<T,D> setDimension(Object dimensionKey, com.google.common.collect.RangeSet<T> rangeSet) Argument is copiedVSpaceBase<T,D> stateIntersection(VSpaceBase<T, D> that) Mutate the ranges of this to create the intersection with otherVSpaceBase<T,D> stateUnion(VSpaceBase<T, D> that) Add all other ranges to this onevoid
-
Field Details
-
vscToRangeSets
-
isVscExhaustive
protected boolean isVscExhaustiveWhether the key set ofvscToRangeSetscovers all possible dimensions. If false then this value space is "open" to all values in any so far unknown dimensions. If true then this value space is "closed".
-
-
Constructor Details
-
VSpaceBase
protected VSpaceBase(boolean isVscExhaustive) -
VSpaceBase
-
-
Method Details
-
classifyValueSpace
-
getDimension
May return null. -
setDimension
public VSpaceBase<T,D> setDimension(Object dimensionKey, com.google.common.collect.RangeSet<T> rangeSet) Argument is copied -
removeDimension
-
addEmptyDimension
Add a new empty dimension. Do nothing if it already exists or if the dimensions are exhaustive -
getOrCreateDimension
-
addOpenDimension
Add a new unconstrained dimension. Do nothing if it already exists or dimensions are non-exhaustive -
isUnconstrained
public boolean isUnconstrained()Unconstrained mode means that any valid range is considered enclosed by this one -
isConflicting
public boolean isConflicting() -
add
-
substract
-
stateIntersection
Mutate the ranges of this to create the intersection with other- Parameters:
that-- Returns:
-
stateUnion
Add all other ranges to this one- Parameters:
that-- Returns:
-