public abstract class AbstractImmutableSubstitutionImpl<T extends ImmutableTerm> extends AbstractProtoSubstitution<T> implements ImmutableSubstitution<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImmutableSubstitutionImpl(AtomFactory atomFactory,
TermFactory termFactory,
SubstitutionFactory substitutionFactory) |
apply, apply, applyToBooleanExpression, applyToFunctionalTermclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGroundTermFragment, getVar2VarFragmentapply, apply, applyToBooleanExpression, applyToFunctionalTerm, applyToVariable, get, getDomain, getImmutableMap, isDefining, isEmptyprotected AbstractImmutableSubstitutionImpl(AtomFactory atomFactory, TermFactory termFactory, SubstitutionFactory substitutionFactory)
public DataAtom applyToDataAtom(DataAtom atom) throws ConversionException
ImmutableSubstitutionIf T == ImmutableTerm, throws a ConversionException if a substituted term is not a VariableOrGroundTerm.
applyToDataAtom in interface ImmutableSubstitution<T extends ImmutableTerm>ConversionExceptionpublic DistinctVariableOnlyDataAtom applyToDistinctVariableOnlyDataAtom(DistinctVariableOnlyDataAtom dataAtom) throws ConversionException
applyToDistinctVariableOnlyDataAtom in interface ImmutableSubstitution<T extends ImmutableTerm>ConversionExceptionpublic ImmutableSubstitution<ImmutableTerm> composeWith(ImmutableSubstitution<? extends ImmutableTerm> f)
composeWith in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<T> composeWith2(ImmutableSubstitution<? extends T> g)
composeWith2 in interface ImmutableSubstitution<T extends ImmutableTerm>protected Optional<com.google.common.collect.ImmutableMap<Variable,T>> computeUnionMap(ImmutableSubstitution<T> otherSubstitution)
public Optional<ImmutableSubstitution<T>> union(ImmutableSubstitution<T> otherSubstitution)
ImmutableSubstitutionunion in interface ImmutableSubstitution<T extends ImmutableTerm>public Optional<ImmutableSubstitution<? extends ImmutableTerm>> unionHeterogeneous(ImmutableSubstitution<? extends ImmutableTerm> otherSubstitution)
ImmutableSubstitutionunionHeterogeneous in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<ImmutableTerm> applyToTarget(ImmutableSubstitution<? extends ImmutableTerm> otherSubstitution)
ImmutableSubstitutionapplyToTarget in interface ImmutableSubstitution<T extends ImmutableTerm>protected abstract ImmutableSubstitution<T> constructNewSubstitution(com.google.common.collect.ImmutableMap<Variable,T> map)
public ImmutableSubstitution<T> orientate(com.google.common.collect.ImmutableList<Variable> priorityVariables)
ImmutableSubstitutionActs on equality between variables.
The first variable in the list has the highest priority.
This method requires the domain and the range to be disjoint.
orientate in interface ImmutableSubstitution<T extends ImmutableTerm>public Optional<ImmutableExpression> convertIntoBooleanExpression()
convertIntoBooleanExpression in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<T> reduceDomainToIntersectionWith(com.google.common.collect.ImmutableSet<Variable> restrictingDomain)
ImmutableSubstitutionreduceDomainToIntersectionWith in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<ImmutableTerm> simplifyValues(VariableNullability variableNullability)
simplifyValues in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<ImmutableTerm> simplifyValues()
simplifyValues in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<ImmutableTerm> simplifyValues(Optional<VariableNullability> variableNullability)
protected Optional<ImmutableExpression> convertIntoBooleanExpression(ImmutableSubstitution<? extends ImmutableTerm> substitution)
public ImmutableSubstitution<VariableOrGroundTerm> getVariableOrGroundTermFragment()
getVariableOrGroundTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<NonGroundFunctionalTerm> getNonGroundFunctionalTermFragment()
getNonGroundFunctionalTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<GroundFunctionalTerm> getGroundFunctionalTermFragment()
getGroundFunctionalTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<NonFunctionalTerm> getNonFunctionalTermFragment()
getNonFunctionalTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<ImmutableFunctionalTerm> getFunctionalTermFragment()
getFunctionalTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>public ImmutableSubstitution<NonVariableTerm> getNonVariableTermFragment()
getNonVariableTermFragment in interface ImmutableSubstitution<T extends ImmutableTerm>Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.