本文整理汇总了C#中IGraphProcessingEnvironment类的典型用法代码示例。如果您正苦于以下问题:C# IGraphProcessingEnvironment类的具体用法?C# IGraphProcessingEnvironment怎么用?C# IGraphProcessingEnvironment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IGraphProcessingEnvironment类属于命名空间,在下文中一共展示了IGraphProcessingEnvironment类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DoUndo
public void DoUndo(IGraphProcessingEnvironment procEnv)
{
// nothing to do, this is only needed to distinguish the outermost transaction
// from the nested transactions to know when to remove the rollback information
// if nothing happened from opening the first transaction to opening the transaction of interest,
// they would be indistinguishable as the number of undo items did not change
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:7,代码来源:lgspTransactionManagerUndoItems.cs
示例2: GetVariableValue
// gets the variable value, decides whether to query the graph-global or the sequence-lokal variables
public object GetVariableValue(IGraphProcessingEnvironment procEnv)
{
if(Type == "") {
return procEnv.GetVariableValue(name);
} else {
#if LOG_VARIABLE_OPERATIONS
procEnv.Recorder.Write(name + "==" + EmitHelper.ToStringAutomatic(value, procEnv.Graph) + "\n");
#endif
return value;
}
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:12,代码来源:SequenceVariable.cs
示例3: Copy
public SequenceVariable Copy(Dictionary<SequenceVariable, SequenceVariable> originalToCopy, IGraphProcessingEnvironment procEnv)
{
// ensure that every instance of a variable is mapped to the same copy
if(originalToCopy.ContainsKey(this))
return originalToCopy[this];
// local variables must be cloned when a defined sequence gets copied
// global variables stay the same
if(Type == "")
{
originalToCopy.Add(this, this);
return this;
}
else
{
originalToCopy.Add(this, new SequenceVariable(name, prefix, type));
#if LOG_VARIABLE_OPERATIONS
procEnv.Recorder.Write(name + " = " + name + "; " + name + "==" + EmitHelper.ToStringAutomatic(value, procEnv.Graph) + "\n");
#endif
return originalToCopy[this];
}
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:22,代码来源:SequenceVariable.cs
示例4: Execute
public override object Execute(IGraphProcessingEnvironment procEnv)
{
object entity = Entity.Evaluate(procEnv);
return TypesHelper.XgrsTypeOfConstant(entity, procEnv.Graph.Model);
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:5,代码来源:SequenceExpression.cs
示例5: CopyExpression
internal override SequenceExpression CopyExpression(Dictionary<SequenceVariable, SequenceVariable> originalToCopy, IGraphProcessingEnvironment procEnv)
{
SequenceExpressionFunctionMethodCall copy = (SequenceExpressionFunctionMethodCall)MemberwiseClone();
copy.TargetExpr = TargetExpr.CopyExpression(originalToCopy, procEnv);
copy.ParamBindings = ParamBindings.Copy(originalToCopy, procEnv);
return copy;
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:7,代码来源:SequenceExpression.cs
示例6: SetVariableValue
// sets the variable value, decides whether to update the graph-global or the sequence-lokal variables
public void SetVariableValue(object value, IGraphProcessingEnvironment procEnv)
{
if(Type == "") {
procEnv.SetVariableValue(name, value);
} else {
#if LOG_VARIABLE_OPERATIONS
procEnv.Recorder.Write(name + " = " + EmitHelper.ToStringAutomatic(value, procEnv.Graph) + "\n");
#endif
this.value = value;
}
}
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:12,代码来源:SequenceVariable.cs
注:本文中的IGraphProcessingEnvironment类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论