Example #1
0
 public override void Build(IGraphBuilder builder)
 {
     //do nothing
       //we can do the linkage here
       if(OnFalseHook != null)
     builder.Link(Index, OnFalseHook.First().Index, "[label = \"f\"]");
       if(OnTrueHook != null)
     builder.Link(Index, OnTrueHook.First().Index, "[label = \"t\"]");
 }
Example #2
0
 public override void Build(IGraphBuilder builder)
 {
     //do nothing
     //we can do the linkage here
     if (OnFalseHook != null)
     {
         builder.Link(Index, OnFalseHook.First().Index, "[label = \"f\"]");
     }
     if (OnTrueHook != null)
     {
         builder.Link(Index, OnTrueHook.First().Index, "[label = \"t\"]");
     }
 }
Example #3
0
 public override void Build(IGraphBuilder builder)
 {
     if (OnTrueHook != null)
     {
         builder.Link(Index, OnTrueHook.Index, string.Empty);
     }
 }
Example #4
0
        private void BuildCondition(Operation v0, IGraphBuilder builder)
        {
            string trueLabel  = "[label = \"t\"]";
            string falseLabel = "[label = \"f\"]";

            if (v0.OnFalseHook == null)
            {
                trueLabel = string.Empty;
            }
            if (v0.OnTrueHook != null)
            {
                builder.Link(v0.Index, v0.OnTrueHook.Index, trueLabel);
            }
            if (v0.OnFalseHook != null)
            {
                builder.Link(v0.Index, v0.OnFalseHook.Index, falseLabel);
            }
        }
Example #5
0
 private void BuildCondition(Operation v0,  IGraphBuilder builder)
 {
     string trueLabel = "[label = \"t\"]";
     string falseLabel = "[label = \"f\"]";
     if(v0.OnFalseHook == null)
         trueLabel = string.Empty;
     if(v0.OnTrueHook != null)
         builder.Link(v0.Index, v0.OnTrueHook.Index, trueLabel);
     if(v0.OnFalseHook != null)
         builder.Link(v0.Index, v0.OnFalseHook.Index, falseLabel);
 }
Example #6
0
 public override void Build(IGraphBuilder builder)
 {
     if(OnTrueHook != null)
     builder.Link(Index, OnTrueHook.Index, string.Empty);
 }