Class FreshVarSubstitution
java.lang.Object
fr.lirmm.graphik.integraal.core.AbstractSubstitution
fr.lirmm.graphik.integraal.core.AbstractMapBasedSubstitution
fr.lirmm.graphik.integraal.core.TreeMapSubstitution
fr.lirmm.graphik.integraal.core.FreshVarSubstitution
- All Implemented Interfaces:
Substitution, Comparable<Substitution>
Substitution that maps terms to freshly generated variables.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a substitution backed by a default fresh-variable generator.Creates a substitution using the provided generator.FreshVarSubstitution(VariableGenerator gen, Iterable<Term> termsToSubstitute) Creates a substitution and eagerly substitutes the provided terms. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends this object representation to the provided builder.createImageOf(Term term) Get the image of the given term by this substitution, if there is no image specified return the term itself.Methods inherited from class TreeMapSubstitution
getMapMethods inherited from class AbstractMapBasedSubstitution
aggregate, getTerms, getValues, put, removeMethods inherited from class AbstractSubstitution
aggregate, appendTo, apply, apply, compareTo, compose, compose, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, equals, equals, hashCode, put, toStringMethods inherited from interface Comparable
compareToMethods inherited from interface Substitution
aggregate, apply, apply, compose, compose, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, put
-
Constructor Details
-
FreshVarSubstitution
public FreshVarSubstitution()Creates a substitution backed by a default fresh-variable generator. -
FreshVarSubstitution
Creates a substitution using the provided generator.- Parameters:
gen- the generator used to create fresh variables
-
FreshVarSubstitution
Creates a substitution and eagerly substitutes the provided terms.- Parameters:
gen- the generator used to create fresh variablestermsToSubstitute- the initial terms to substitute
-
-
Method Details
-
createImageOf
Description copied from interface:SubstitutionGet the image of the given term by this substitution, if there is no image specified return the term itself.- Specified by:
createImageOfin interfaceSubstitution- Overrides:
createImageOfin classAbstractMapBasedSubstitution- Parameters:
term- the term to substitute- Returns:
- the image of the specified term.
-
appendTo
Appends this object representation to the provided builder.- Parameters:
sb- the target builder
-