本文整理汇总了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
}
示例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;
}
}
示例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];
}
}
示例4: Execute
public override object Execute(IGraphProcessingEnvironment procEnv)
{
object entity = Entity.Evaluate(procEnv);
return TypesHelper.XgrsTypeOfConstant(entity, procEnv.Graph.Model);
}
示例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;
}
示例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;
}
}