|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Values in RAPA and GCL.
Method Summary | |
Value |
apply(Unifier unifier)
Apply a unifier to this value to get a new value. |
void |
compatableWith(Argument argument)
Check that this value is compatable with the argument. |
ValueWhite[] |
evaluate(Map funcs,
Map regs,
HashMap whiteboard)
Evaluate the expression/value under the given substitution over functions and valuation of register contents. |
boolean |
occurs(Substitution subst,
Variable var)
Check whether the variable occurs in this value under the given substitution. |
Value |
subst(GeneralSubstitution subst)
Apply a substitution to this value to get a new value. |
Value |
subst(Substitution subst)
Apply a substitution to this value to get a new value. |
Substitution |
unify(Substitution subst,
Value val)
Get the substitution which unifies this value with the given value, after applying the given substitution. |
Methods inherited from interface uk.ac.man.cs.rainbow.rapa.data.VariableContainer |
hasVariable |
Method Detail |
public Value apply(Unifier unifier)
public Value subst(Substitution subst)
public boolean occurs(Substitution subst, Variable var)
public Substitution unify(Substitution subst, Value val) throws NotUnifiable
subst
- The substitution to apply first.val
- The value to unify with this value.NotUnifiable
- If the two values cannot be unified.public void compatableWith(Argument argument) throws CompatabilityFailure
compatableWith
in interface Argument
GeneralSubstitution
public Value subst(GeneralSubstitution subst)
public ValueWhite[] evaluate(Map funcs, Map regs, HashMap whiteboard)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |