Class TreeSubstitutionImpl
java.lang.Object
fr.inria.rules.integraal.model.logicalElements.impl.SubstitutionImpl
fr.inria.rules.integraal.model.logicalElements.impl.TreeSubstitutionImpl
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.ISubstitution<Variable, Term, Substitution>, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Substitution, TreeSubstitution, Serializable
Deprecated.
- See Also:
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITERFields inherited from interface Substitution
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTreeResults(Variable v, List<Substitution> results) Deprecated.entries()Deprecated.booleanDeprecated.Deprecated.Retourne la map complèteDeprecated.Récupère les résultats associés à une variable de structure.inthashCode()Deprecated.//////////////////////////////////////////////booleanisEmpty()Deprecated.Indicates whether this substitution contains no mappings.keys()Deprecated.Get the domain of this substitution.limitedTo(Collection<Variable> vars) Deprecated.Returns a copy of this substitution restricted to the supplied variables.merged(Substitution other) Deprecated.Two substitutions can be merged iff for each key in common, the image is the samebooleanmergeInPlace(Substitution other) Deprecated.Attempts to mergeotherinto this substitution in-place.voidDeprecated.Remove the given variable affectation from this substitutiontoString()Deprecated.Methods inherited from class SubstitutionImpl
add, add, aggregated, getImageOfTreeVariable, getImageOfVariable, isExtensionOf, isInjective, isInvertible, isStandard, rangeTerms, toMap, treeEntries, treeKeysMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface fr.inria.rules.dlgpemodel.api.elems.ISubstitution
getImageOfTreeVariable, treeKeysMethods inherited from interface Substitution
add, add, aggregated, createImageOf, createImageOf, getImageOfVariable, isExtensionOf, isInjective, isInvertible, isStandard, mapsToConstantsOnly, mapsToConstantsOnly, rangeTerms, removeIdentity, toMap, treeEntries
-
Constructor Details
-
TreeSubstitutionImpl
public TreeSubstitutionImpl()Deprecated. -
TreeSubstitutionImpl
Deprecated.
-
-
Method Details
-
addTreeResults
Deprecated.- Specified by:
addTreeResultsin interfaceTreeSubstitution
-
remove
Deprecated.Description copied from interface:SubstitutionRemove the given variable affectation from this substitution- Specified by:
removein interfaceSubstitution- Overrides:
removein classSubstitutionImpl- Parameters:
v- a variable
-
keys
Deprecated.Description copied from interface:SubstitutionGet the domain of this substitution.- Specified by:
keysin interfacefr.inria.rules.dlgpemodel.api.elems.ISubstitution<Variable, Term, Substitution>- Specified by:
keysin interfaceSubstitution- Overrides:
keysin classSubstitutionImpl- Returns:
- the domain of this substitution.
-
entries
Deprecated.- Specified by:
entriesin interfaceSubstitution- Overrides:
entriesin classSubstitutionImpl
-
getTreeResults
Deprecated.Description copied from interface:TreeSubstitutionRécupère les résultats associés à une variable de structure.- Specified by:
getTreeResultsin interfaceTreeSubstitution
-
getTreeMap
Deprecated.Description copied from interface:TreeSubstitutionRetourne la map complète- Specified by:
getTreeMapin interfaceTreeSubstitution
-
isEmpty
public boolean isEmpty()Deprecated.Description copied from interface:SubstitutionIndicates whether this substitution contains no mappings.- Specified by:
isEmptyin interfaceSubstitution- Overrides:
isEmptyin classSubstitutionImpl- Returns:
- true iff this substitution is empty
-
equals
-
toString
Deprecated.- Overrides:
toStringin classSubstitutionImpl- Returns:
- a string representation of this substitution of the form {v1:t1, ..., vn:tn}
-
hashCode
public int hashCode()Deprecated.Description copied from class:SubstitutionImpl//////////////////////////////////////////////- Overrides:
hashCodein classSubstitutionImpl
-
merged
Deprecated.Description copied from interface:SubstitutionTwo substitutions can be merged iff for each key in common, the image is the same- Specified by:
mergedin interfaceSubstitution- Overrides:
mergedin classSubstitutionImpl- Parameters:
other- a substitution- Returns:
- a new substitution being the merge of this one and the other one or an empty optional if the substitutions are not compatible
-
mergeInPlace
Deprecated.Description copied from interface:SubstitutionAttempts to mergeotherinto this substitution in-place.A merge succeeds iff, for every variable appearing in both substitutions, the two images are equal. – On success : the new (compatible) bindings from
otherare copied insidethisand the method returnstrue. – On failure :thisis left exactly in its original state and the method returnsfalse.Side effects : the operation mutates
thisonly when it succeeds.- Specified by:
mergeInPlacein interfaceSubstitution- Overrides:
mergeInPlacein classSubstitutionImpl- Parameters:
other- a substitution to merge- Returns:
trueon success,falseif a conflict is detected
-
limitedTo
Deprecated.Description copied from interface:SubstitutionReturns a copy of this substitution restricted to the supplied variables.- Specified by:
limitedToin interfaceSubstitution- Overrides:
limitedToin classSubstitutionImpl- Parameters:
vars- variables to limit to- Returns:
- a new substitution identical to this one but limited to a subset of variables
-