at.jku.risc.stout.nau.data
public class NominalPair extends Printable implements DeepCopy<NominalPair>
Modifier and Type | Field and Description |
---|---|
static String |
pairEnd
The closing parenthesis used to group a nominal pair, Default = '>'
|
static String |
pairSeparator
The character used to separate the two parts of a nominal pair, Default =
'; '
|
static String |
pairStart
The opening parenthesis used to group a nominal pair, Default = '<'
|
Constructor and Description |
---|
NominalPair(FreshnessCtx freshEnv,
NominalTerm term)
Instantiates a nominal pair with then given freshness context and
nominal term.
|
NominalPair(NominalTerm term)
Instantiates a nominal pair with an empty freshness context.
|
Modifier and Type | Method and Description |
---|---|
NominalPair |
deepCopy()
Returns a deep copy of this object.
|
boolean |
equals(Object other) |
FreshnessCtx |
getFreshEnv()
Returns the freshness context (FreshnessCtx) of this
nominal pair.
|
NominalTerm |
getTerm()
Returns the nominal term (NominalTerm) of this nominal pair.
|
static void |
printPair(Writer toPrint,
FreshnessCtx freshEnv,
NominalTerm term) |
void |
printString(Writer toPrint)
Writes a string representation of this object into an arbitrary
Writer.
|
boolean |
prooveFresh(Atom atom)
Tests whether the given atom is fresh in the nominal term respecting the
freshness context.
|
void |
setFreshEnv(FreshnessCtx freshEnv)
Changes the freshness context (FreshnessCtx) of this
nominal pair.
|
void |
setTerm(NominalTerm term)
Changes the nominal term (NominalTerm) of this nominal pair.
|
void |
substitute(Variable fromVar,
NominalTerm toTerm)
Applies a substitution to the nominal pair.
|
void |
swap(Atom a1,
Atom a2)
Applies a swapping to this nominal pair.
|
printString, toString
public static String pairEnd
public static String pairSeparator
public static String pairStart
public NominalPair(FreshnessCtx freshEnv, NominalTerm term)
public NominalPair(NominalTerm term)
public NominalPair deepCopy()
DeepCopy
deepCopy
in interface DeepCopy<NominalPair>
public FreshnessCtx getFreshEnv()
public NominalTerm getTerm()
public static void printPair(Writer toPrint, FreshnessCtx freshEnv, NominalTerm term) throws IOException
IOException
public void printString(Writer toPrint) throws IOException
Printable
printString
in class Printable
IOException
public boolean prooveFresh(Atom atom)
public void setFreshEnv(FreshnessCtx freshEnv)
public void setTerm(NominalTerm term)
public void substitute(Variable fromVar, NominalTerm toTerm) throws MalformedSortException
MalformedSortException
public void swap(Atom a1, Atom a2) throws MalformedSortException
MalformedSortException