public class TupleCombiner extends Object implements CloneableType<TupleCombiner>
Constructor and Description |
---|
TupleCombiner()
Creates a new TupleCombiner that specifies 1-tuples of values of all input variables.
|
TupleCombiner(int tupleSize)
Creates a new TupleCombiner that specifies N-tuples of values of all input variables.
|
Modifier and Type | Method and Description |
---|---|
TupleCombiner |
addExcludedVar(String varNamePattern)
Adds a pattern matching input variables to be excluded from this combination.
|
TupleCombiner |
addIncludedVar(String varNamePattern)
Adds a pattern matching input variables to be included in this combination.
|
TupleCombiner |
addOnceTuple(TupleRef tupleRef)
Adds a once-only tuple to this combination.
|
TupleCombiner |
cloneOf()
Returns a copy of this object.
|
boolean |
equals(Object object) |
List<VarDef> |
getCombinedVars(FunctionInputDef inputDef)
Returns the set of input variables to be combined.
|
String[] |
getExcluded()
Returns the set of input variables to be excluded from this combination.
|
String[] |
getIncluded()
Returns the set of input variables to be included in this combination.
|
Iterator<TupleRef> |
getOnceTuples()
Returns an iterator for the set of once-only tuples in this combination.
|
Collection<Tuple> |
getTuples(FunctionInputDef inputDef)
Returns all valid N-tuples of values for the included input variables.
|
static Collection<Tuple> |
getTuples(List<VarDef> varDefs,
int tupleSize)
Returns all valid N-tuples of values for the given input variables.
|
int |
getTupleSize()
Returns the tuple size for input variable combinations.
|
int |
hashCode() |
boolean |
isEligible(IVarDef varDef)
Returns true if the given input variable is eligible to be combined.
|
TupleCombiner |
removeAllExcludedVars()
Removes all patterns matching input variables to be excluded from this combination.
|
TupleCombiner |
removeAllIncludedVars()
Removes all patterns matching input variables to be included in this combination.
|
TupleCombiner |
removeAllOnceTuples()
Removes all once-only tuples from this combination.
|
TupleCombiner |
removeExcludedVar(String varNamePattern)
Removes a pattern matching input variables to be excluded from this combination.
|
TupleCombiner |
removeIncludedVar(String varNamePattern)
Removes a pattern matching input variables to be included in this combination.
|
TupleCombiner |
removeOnceTuple(TupleRef tupleRef)
Removes a once-only tuple from this combination.
|
void |
setTupleSize(int tupleSize)
Changes the tuple size for input variable combinations.
|
String |
toString() |
public TupleCombiner()
public TupleCombiner(int tupleSize)
public void setTupleSize(int tupleSize)
public int getTupleSize()
public String[] getIncluded()
public TupleCombiner addIncludedVar(String varNamePattern)
public TupleCombiner removeIncludedVar(String varNamePattern)
public TupleCombiner removeAllIncludedVars()
public String[] getExcluded()
public TupleCombiner addExcludedVar(String varNamePattern)
public TupleCombiner removeExcludedVar(String varNamePattern)
public TupleCombiner removeAllExcludedVars()
public Iterator<TupleRef> getOnceTuples()
public TupleCombiner addOnceTuple(TupleRef tupleRef)
public TupleCombiner removeOnceTuple(TupleRef tupleRef)
public TupleCombiner removeAllOnceTuples()
public Collection<Tuple> getTuples(FunctionInputDef inputDef)
public static Collection<Tuple> getTuples(List<VarDef> varDefs, int tupleSize)
public List<VarDef> getCombinedVars(FunctionInputDef inputDef)
public boolean isEligible(IVarDef varDef)
public TupleCombiner cloneOf()
cloneOf
in interface CloneableType<TupleCombiner>
Copyright © 2024 The Cornutum Project. All rights reserved.