本文整理汇总了C#中de.unika.ipd.grGen.libGr类的典型用法代码示例。如果您正苦于以下问题:C# de.unika.ipd.grGen.libGr类的具体用法?C# de.unika.ipd.grGen.libGr怎么用?C# de.unika.ipd.grGen.libGr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
de.unika.ipd.grGen.libGr类属于命名空间,在下文中一共展示了de.unika.ipd.grGen.libGr类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: finegrainChange
public void finegrainChange(GRGEN_LIBGR.IActionExecutionEnvironment actionEnv, GRGEN_LIBGR.IGraph graph, GRGEN_LIBGR.IGraphElement elemCalledOn)
{
Console.WriteLine("finegrainChange called");
((GRGEN_LIBGR.ISubactionAndOutputAdditionEnvironment)actionEnv).Recorder.External("add foo bar to " + ((GRGEN_LIBGR.INamedGraph)graph).GetElementName(elemCalledOn));
dummy.Add("foo","bar");
((GRGEN_LIBGR.IGraphProcessingEnvironment)actionEnv).TransactionManager.ExternalTypeChanged(new UndoDummy((GRGEN_MODEL.INB)elemCalledOn, "foo", graph));
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:7,代码来源:castModel3ModelExternalFunctionsImpl.cs
示例2: ApplyXGRS_createEdge
public static bool ApplyXGRS_createEdge(GRGEN_LGSP.LGSPGraphProcessingEnvironment procEnv, GRGEN_LIBGR.INode var_n1, GRGEN_LIBGR.INode var_n2, ref GRGEN_LIBGR.IEdge var_e)
{
// it is recommended to create an edge as in the function below, immediately adding it to the graph
// then you must work with LGSPNodes, casting the INodes you receive as parameters to that concrete type (inheriting from INode)
var_e = GRGEN_MODEL.E.TypeInstance.CreateEdge(var_n1, var_n2);
procEnv.graph.AddEdge(var_e);
return true;
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:8,代码来源:ExternalFiltersAndSequencesActionsExternalFunctionsImpl.cs
示例3: ParseImpl
public static object ParseImpl(TextReader reader, GRGEN_LIBGR.AttributeType attrType, GRGEN_LIBGR.IGraph graph)
{
char lookahead = (char)reader.Peek();
if(lookahead == 'o')
{
reader.Read(); // eat 'o'
return new Own();
}
else if(lookahead == 'p')
{
reader.Read(); // eat 'p'
StringBuilder sb = new StringBuilder();
while(reader.Peek() != ',' && reader.Peek() != ')') // attributes are separated by , a node/edge terminated by ) in .grs
sb.Append((char)reader.Read()); // eat non ',', ')'
OwnPown op = new OwnPown();
op.ehe = sb.ToString();
return op;
}
else if(lookahead == 'h')
{
reader.Read(); // eat 'h'
StringBuilder sb = new StringBuilder();
while(reader.Peek() != ';')
sb.Append((char)reader.Read()); // eat non ';'
string ehe = sb.ToString();
sb.Length = 0;
reader.Read(); // eat ';'
while(reader.Peek() != ',' && reader.Peek() != ')') // attributes are separated by , a node/edge terminated by ) in .grs
sb.Append((char)reader.Read()); // eat non ',',')'
OwnPownHome oph = new OwnPownHome();
oph.ehe = ehe;
oph.aha = sb.ToString();
return oph;
}
else
{
if(reader.Peek() == 'n')
{
reader.Read();
if(reader.Peek() == 'u')
{
reader.Read();
if(reader.Peek() == 'l')
{
reader.Read();
if(reader.Peek() == 'l')
{
reader.Read();
return null;
}
}
}
}
throw new Exception("parsing failure");
}
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:56,代码来源:ExternalAttributeEvaluationModelExternalFunctionsImpl.cs
示例4: AreAttributesEqual
public override bool AreAttributesEqual(GRGEN_LIBGR.IGraphElement that) {
if(!(that is D231_4121_Impl)) return false;
D231_4121_Impl that_ = (D231_4121_Impl)that;
return true
&& a2_M0no_suXx_h4rD == that_.a2_M0no_suXx_h4rD
&& b23_M0no_suXx_h4rD == that_.b23_M0no_suXx_h4rD
&& a4_M0no_suXx_h4rD == that_.a4_M0no_suXx_h4rD
&& b41_M0no_suXx_h4rD == that_.b41_M0no_suXx_h4rD
&& b42_M0no_suXx_h4rD == that_.b42_M0no_suXx_h4rD
&& a5_M0no_suXx_h4rD == that_.a5_M0no_suXx_h4rD
&& d231_4121_M0no_suXx_h4rD == that_.d231_4121_M0no_suXx_h4rD
;
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:13,代码来源:complModelModelStub.cs
示例5: AreAttributesEqual
public override bool AreAttributesEqual(GRGEN_LIBGR.IGraphElement that) {
if(!(that is @Node)) return false;
@Node that_ = (@Node)that;
return true
;
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:6,代码来源:StdModel.cs
示例6: AreAttributesEqual
public override bool AreAttributesEqual(GRGEN_LIBGR.IGraphElement that) {
if(!(that is @Expression)) return false;
@Expression that_ = (@Expression)that;
return true
;
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:6,代码来源:ProgramGraphsOriginalModel.cs
示例7: IsA
public override bool IsA(GRGEN_LIBGR.GrGenType other)
{
return (this == other) || isA[other.TypeID];
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:StdModel.cs
示例8: External
public void External(string line, GRGEN_LIBGR.IGraph graph)
{
Console.Write("Ignoring: ");
Console.WriteLine(line);
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:5,代码来源:StdModel.cs
示例9: ApplyXGRS_blo
public static bool ApplyXGRS_blo(GRGEN_LGSP.LGSPGraphProcessingEnvironment procEnv, GRGEN_LIBGR.INode var_v1, GRGEN_LIBGR.IEdge var_v2, ref GRGEN_LIBGR.INode var_r1, ref GRGEN_LIBGR.IEdge var_r2)
{
var_r1 = var_v1;
var_r2 = var_v2;
return true;
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:6,代码来源:ExternalFiltersAndSequencesActionsExternalFunctionsImpl.cs
示例10: FillIndexSetAsClone
public void FillIndexSetAsClone(GRGEN_LIBGR.IGraph graph, GRGEN_LIBGR.IGraph originalGraph, IDictionary<GRGEN_LIBGR.IGraphElement, GRGEN_LIBGR.IGraphElement> oldToNewMap) {
((StdIndexSet)((GRGEN_LGSP.LGSPGraph)graph).indices).FillAsClone((GRGEN_LGSP.LGSPGraph)originalGraph, oldToNewMap);
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:3,代码来源:StdModel.cs
示例11: Serialize
public string Serialize(object attribute, GRGEN_LIBGR.AttributeType attrType, GRGEN_LIBGR.IGraph graph)
{
Console.WriteLine("Warning: Exporting attribute of object type to null");
return "null";
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:5,代码来源:StdModel.cs
示例12: Exception
public override GRGEN_LIBGR.IEdge CreateEdge(GRGEN_LIBGR.INode source, GRGEN_LIBGR.INode target)
{
throw new Exception("The abstract edge type AEdge cannot be instantiated!");
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:StdModel.cs
示例13: SetSourceAndTarget
public override void SetSourceAndTarget(GRGEN_LIBGR.IEdge edge, GRGEN_LIBGR.INode source, GRGEN_LIBGR.INode target)
{
throw new Exception("The abstract edge type AEdge does not support source and target setting!");
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:StdModel.cs
示例14: externalProcedure
public static void externalProcedure(GRGEN_LIBGR.IActionExecutionEnvironment actionEnv, GRGEN_LIBGR.IGraph graph)
{
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:3,代码来源:MethodTestModelModelExternalFunctionsImpl.cs
示例15: CreateNodeWithCopyCommons
public override GRGEN_LIBGR.INode CreateNodeWithCopyCommons(GRGEN_LIBGR.INode oldINode)
{
return new [email protected]();
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:StdModel.cs
示例16: ApplyFunctionMethod
public override object ApplyFunctionMethod(GRGEN_LIBGR.IActionExecutionEnvironment actionEnv, GRGEN_LIBGR.IGraph graph, string name, object[] arguments)
{
switch(name)
{
default: throw new NullReferenceException("MethodSignature does not have the function method " + name + "!");
}
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:7,代码来源:ProgramGraphsOriginalModel.cs
示例17: Exception
public override GRGEN_LIBGR.INode CreateNodeWithCopyCommons(GRGEN_LIBGR.INode oldINode)
{
throw new Exception("Cannot retype to the abstract type Feature!");
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:ProgramGraphsOriginalModel.cs
示例18: CreateAndBindIndexSet
public void CreateAndBindIndexSet(GRGEN_LIBGR.IGraph graph) {
((GRGEN_LGSP.LGSPGraph)graph).indices = new ProgramGraphsOriginalIndexSet((GRGEN_LGSP.LGSPGraph)graph);
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:3,代码来源:ProgramGraphsOriginalModel.cs
示例19: CreateEdgeWithCopyCommons
public override GRGEN_LIBGR.IEdge CreateEdgeWithCopyCommons(GRGEN_LIBGR.INode source, GRGEN_LIBGR.INode target, GRGEN_LIBGR.IEdge oldIEdge)
{
return new [email protected]((GRGEN_LGSP.LGSPNode) source, (GRGEN_LGSP.LGSPNode) target);
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:4,代码来源:StdModel.cs
示例20: CreateAndBindIndexSet
public void CreateAndBindIndexSet(GRGEN_LIBGR.IGraph graph) {
((GRGEN_LGSP.LGSPGraph)graph).indices = new StdIndexSet((GRGEN_LGSP.LGSPGraph)graph);
}
开发者ID:ArsenShnurkov,项目名称:GrGen,代码行数:3,代码来源:StdModel.cs
注:本文中的de.unika.ipd.grGen.libGr类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论