Package FAtiMA.Core.wellFormedNames
Class SubstitutionSet
java.lang.Object
FAtiMA.Core.wellFormedNames.SubstitutionSet
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Set of SubstitutionsSubstitutionSet(ArrayList<Substitution> substitutions) Creates a new Set of substitutions and adds all substitutions received in the argument -
Method Summary
Modifier and TypeMethodDescriptionvoidAddSubstitution(Substitution subst) Adds a given Substitution to the SubstitutionSetvoidAddSubstitutions(ArrayList<Substitution> substs) Adds a list of Substitutions to the SubstitutionSetbooleanCompares the current SubstitutionSet with another SetGets a list with all the substitutions stored in the SubstitutionSettoString()Converts the SubstitutionSet to a String
-
Constructor Details
-
SubstitutionSet
public SubstitutionSet()Creates a new Set of Substitutions -
SubstitutionSet
Creates a new Set of substitutions and adds all substitutions received in the argument- Parameters:
substitutions- - a list with initial substitutions to add to the SubstitutionSet
-
-
Method Details
-
AddSubstitution
Adds a given Substitution to the SubstitutionSet- Parameters:
subst- - the Substitution to add
-
AddSubstitutions
Adds a list of Substitutions to the SubstitutionSet- Parameters:
substs- - the list of Substitutions to Add
-
GetSubstitutions
Gets a list with all the substitutions stored in the SubstitutionSet- Returns:
- - the list with all substitutions
-
equals
Compares the current SubstitutionSet with another Set -
toString
Converts the SubstitutionSet to a String
-