 | LGSPBackendCreatePersistentNamedFromSpec Method (String, IGlobalVariables, String, Int32, String, String, String, LGSPPersistentNamedGraph, LGSPActions) |
Creates a new LGSPPersistentNamedGraph and LGSPActions instance from the specified specification file.
If the according dlls do not exist or are out of date, the needed processing steps are performed automatically.
A name for the graph is automatically generated.
Namespace:
de.unika.ipd.grGen.lgsp
Assembly:
lgspBackend (in lgspBackend.dll) Version: GrGen.NET 8.0
Syntaxpublic void CreatePersistentNamedFromSpec(
string grgFilename,
IGlobalVariables globalVariables,
string statisticsPath,
int capacity,
string persistenceProvider,
string connectionParameters,
string persistentGraphParameters,
out LGSPPersistentNamedGraph newGraph,
out LGSPActions newActions
)
Parameters
- grgFilename
- Type: SystemString
Filename of the rule specification file (.grg). - globalVariables
- Type: de.unika.ipd.grGen.libGrIGlobalVariables
An object implementing the IGlobalVariables interface, serving as global variables. - statisticsPath
- Type: SystemString
Optional path to a file containing the graph statistics to be used for building the matchers. - capacity
- Type: SystemInt32
The initial capacity for the name maps (performance optimization, use 0 if unsure). - persistenceProvider
- Type: SystemString
The name of the persistence provider (for the persistent named graph). - connectionParameters
- Type: SystemString
The connection parameters to configure the persistence provider. - persistentGraphParameters
- Type: SystemString
Additional optional parameters for the persistent graph. - newGraph
- Type: de.unika.ipd.grGen.lgspLGSPPersistentNamedGraph
Returns the new persistent named graph. - newActions
- Type: de.unika.ipd.grGen.lgspLGSPActions
Returns the new BaseActions object.
Exceptions| Exception | Condition |
|---|
| FileNotFoundException | Thrown, when a needed specification file does not exist. |
| Exception | Thrown, when something goes wrong. |
See Also