Click or drag to resize

IBackendCreateFromSpec Method (String, IGlobalVariables, String, String, ProcessSpecFlags, ListString, IGraph, IActions)

Creates a new IGraph and IActions backend instance from the specified specification file. If neccessary, any processing steps are performed automatically.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
void CreateFromSpec(
	string grgFilename,
	IGlobalVariables globalVariables,
	string graphName,
	string statisticsPath,
	ProcessSpecFlags flags,
	List<string> externalAssemblies,
	out IGraph newGraph,
	out IActions 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.
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.
newGraph
Type: de.unika.ipd.grGen.libGrIGraph
Returns the new graph.
newActions
Type: de.unika.ipd.grGen.libGrIActions
Returns the new IActions object.
Exceptions
ExceptionCondition
ExceptionThrown when something goes wrong.
See Also