at.jku.risc.stout.nau.data
public class FreshnessCtx extends Printable implements DeepCopy<FreshnessCtx>
Constructor and Description |
---|
FreshnessCtx() |
FreshnessCtx(int sizeAtomIdx,
int sizeVarIdx) |
Modifier and Type | Method and Description |
---|---|
void |
addFreshConstraint(Atom atom,
NominalTerm... nomTerms)
Add freshness constraints as needed, such that the given atom is fresh in
all the given nominal terms.
|
boolean |
contains(Atom atom,
Variable var) |
FreshnessCtx |
deepCopy()
Returns a deep copy of this object.
|
Set<Variable> |
get(Atom fresh) |
Set<Atom> |
get(Variable fresh) |
boolean |
isEmpty() |
boolean |
isSubsetOf(FreshnessCtx other) |
void |
printString(Writer toPrint)
Writes a string representation of this object into an arbitrary
Writer.
|
void |
put(Atom freshA,
Collection<Variable> forVar) |
void |
put(Atom freshA,
Variable... forVar) |
void |
put(Variable forVar,
Atom... freshA) |
void |
put(Variable forVar,
Collection<Atom> freshA) |
void |
remove(Atom freshA,
Variable forVar) |
Set<Variable> |
removeAll(Atom atom) |
Set<Atom> |
removeAll(Variable var) |
void |
substitute(Variable fromVar,
NominalTerm toTerm) |
FreshnessCtx |
swap(Atom a,
Atom b)
Creates a new freshness context with swapped atoms.
|
printString, toString
public FreshnessCtx()
public FreshnessCtx(int sizeAtomIdx, int sizeVarIdx)
public void addFreshConstraint(Atom atom, NominalTerm... nomTerms)
public FreshnessCtx deepCopy()
DeepCopy
deepCopy
in interface DeepCopy<FreshnessCtx>
public boolean isEmpty()
public boolean isSubsetOf(FreshnessCtx other)
public void printString(Writer toPrint) throws IOException
Printable
printString
in class Printable
IOException
public void put(Atom freshA, Collection<Variable> forVar)
public void put(Variable forVar, Collection<Atom> freshA)
public void substitute(Variable fromVar, NominalTerm toTerm)
public FreshnessCtx swap(Atom a, Atom b)