Class StoredVariableGenerator
java.lang.Object
fr.lirmm.graphik.integraal.core.DefaultVariableGenerator
fr.lirmm.graphik.integraal.core.StoredVariableGenerator
- All Implemented Interfaces:
TermGenerator, VariableGenerator
Variable generator that keeps track of every generated symbol and the symbols created since the last reset.
- Author:
- renaud colin, mathieu dodard
-
Constructor Summary
ConstructorsConstructorDescriptionStoredVariableGenerator(String prefix) Creates a stored variable generator using the given prefix. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a fresh variable, i.e. a variable that does not already exist.Returns all generated symbols.Getting the list of new generated symbol is useful for check at each chase step, if some special processes must be done or notvoidReset the list of newGeneratedSymbol
-
Constructor Details
-
StoredVariableGenerator
Creates a stored variable generator using the given prefix.- Parameters:
prefix- the prefix used for generated variables
-
-
Method Details
-
getGeneratedSymbol
Returns all generated symbols.- Returns:
- the list of generated symbol
-
getNewGeneratedSymbol
Getting the list of new generated symbol is useful for check at each chase step, if some special processes must be done or not- Returns:
- the list of new generated symbol
-
resetNewGeneratedSymbol
public void resetNewGeneratedSymbol()Reset the list of newGeneratedSymbol -
getFreshSymbol
Description copied from interface:VariableGeneratorGenerate a fresh variable, i.e. a variable that does not already exist.- Specified by:
getFreshSymbolin interfaceTermGenerator- Specified by:
getFreshSymbolin interfaceVariableGenerator- Overrides:
getFreshSymbolin classDefaultVariableGenerator- Returns:
- a fresh variable.
-