Package FAtiMA.Core.wellFormedNames
Class Substitution
java.lang.Object
FAtiMA.Core.wellFormedNames.Substitution
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
Inequality
Represents a substitution of a variable for another variable or constant symbol
- Author:
- Joao Dias
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubstitution(Symbol var, Symbol value) Creates a new Substitution of the type variable/value -
Method Summary
-
Field Details
-
_value
-
_variable
-
-
Constructor Details
-
Substitution
Creates a new Substitution of the type variable/value- Parameters:
var- - the variable to be replacedvalue- - the new value to apply in the place of the old variable
-
-
Method Details
-
getValue
Gets the substitution's value - Right side- Returns:
- the right side of the substitution
-
getVariable
Gets the substitution's variable - Left side- Returns:
- the left side of the substitution
-
toString
Converts the substitution to a String -
equals
Compares a substitution with a given object -
clone
-