 | LGSPBackendCreateFromSpec Method (String, IGlobalVariables, String, String, ProcessSpecFlags, ListString, Boolean, Int32, String, String, String) |
Creates a new LGSPGraph or LGSPNamedGraph or LGSPPersistentNamedGraph instance from the specified specification file.
If the according dll does not exist or is out of date, the needed processing steps are performed automatically.
Namespace:
de.unika.ipd.grGen.lgsp
Assembly:
lgspBackend (in lgspBackend.dll) Version: GrGen.NET 8.0
Syntaxpublic LGSPGraph CreateFromSpec(
string gmFilename,
IGlobalVariables globalVariables,
string graphName,
string statisticsPath,
ProcessSpecFlags flags,
List<string> externalAssemblies,
bool named,
int capacity,
string persistenceProvider,
string connectionParameters,
string persistentGraphParameters
)
Parameters
- gmFilename
- Type: SystemString
Filename of the model specification file (.gm). - globalVariables
- Type: de.unika.ipd.grGen.libGrIGlobalVariables
An object implementing the IGlobalVariables interface, serving as global variables. - graphName
- Type: SystemString
Name of the new graph. - statisticsPath
- Type: SystemString
Optional path to a file containing the graph statistics to be used for building the matchers. - flags
- Type: de.unika.ipd.grGen.libGrProcessSpecFlags
Specifies how the specification is to be processed; only KeepGeneratedFiles and CompileWithDebug are taken care of! - externalAssemblies
- Type: System.Collections.GenericListString
List of external assemblies to reference. - named
- Type: SystemBoolean
Returns a named graph if true otherwise a non-named graph. You must cast the LGSPGraph returned to the inherited LGSPNamedGraph if named=true. - 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) - if not null, a persistent (named) graph is created. - connectionParameters
- Type: SystemString
The connection parameters to configure the persistence provider. - persistentGraphParameters
- Type: SystemString
Additional optional parameters for the persistent graph.
Return Value
Type:
LGSPGraphThe new LGSPGraph or LGSPNamedGraph or LGSPPersistentNamedGraph instance.
Exceptions| Exception | Condition |
|---|
| FileNotFoundException | Thrown, when a needed specification file does not exist. |
| Exception | Thrown, when something goes wrong. |
See Also