|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.Substitution
public class Substitution
Substitution of propositional variables.
| Constructor Summary | |
|---|---|
Substitution()
constructor |
|
| Method Summary | |
|---|---|
void |
clear()
|
Object |
clone()
|
Substitution |
cloneSubstitution()
|
Term |
get(int s)
return substitution of propositional variable with index i
If such variable does not exists - return null |
boolean |
isEmpty()
return true if substitution is empty. |
void |
merge(Substitution x)
merge current substitution with x |
void |
print(PrintStream out)
print substitution to out |
void |
print(PrintWriter out)
print substitution to out |
void |
put(Term frs,
Term snd)
put to substitution frs -> snd . |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Substitution()
| Method Detail |
|---|
public void put(Term frs,
Term snd)
throws TermWareException,
MatchingFailure
frs -> snd . One of terms must be propositional variable
concretizeOnly means, that snd must be not propositional variable, but
concrete term.
frs - - term to substitutesnd - - term, which we substitute instead snd.
TermWareException
MatchingFailure
public void merge(Substitution x)
throws TermWareException
x
TermWareExceptionpublic Term get(int s)
i
If such variable does not exists - return null
public boolean isEmpty()
public void print(PrintStream out)
out
public void print(PrintWriter out)
out
public String toString()
toString in class Objectpublic void clear()
public Object clone()
clone in class Objectpublic Substitution cloneSubstitution()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||