Example #1
0
 public void OnNodeHasError(IRunnableNode node, string errorMessage)
 {
     if (NodeHasError != null)
     {
         NodeHasError(this, new NodeEventArgs(node.Id, errorMessage));
     }
 }
Example #2
0
 public void OnNodeExecuting(IRunnableNode node)
 {
     if (NodeExecuting != null)
     {
         NodeExecuting(this, new NodeEventArgs(node.Id));
     }
 }
Example #3
0
 /// <summary>
 /// Fire event if the given node has finished.
 /// </summary>
 /// <param name="node">The node.</param>
 public void OnNodeFinished(IRunnableNode node)
 {
     if (NodeFinished != null)
     {
         NodeFinished(this, new NodeEventArgs(node.Id));
     }
 }
 private static void AddDirectedEdgeImpl(IRunnableNode from, IRunnableNode to)
 {
     from.AddNextNode(to);
     to.AddPreviousNode(from);
 }
Example #5
0
 /// <summary>
 /// Adds the next successor node. It also stores the node in the candidate nodes.
 /// </summary>
 /// <param name="node">The node.</param>
 public override void AddNextNode(IRunnableNode node)
 {
     base.AddNextNode(node);
     m_candidateNodes.Add(node);
 }
 /// <summary>
 /// Fire event if the given node has finished.
 /// </summary>
 /// <param name="node">The node.</param>
 public void OnNodeFinished(IRunnableNode node)
 {
     if (NodeFinished != null)
     {
         NodeFinished(this, new NodeEventArgs(node.Id));
     }
 }
 public void OnNodeHasError(IRunnableNode node, string errorMessage)
 {
     if (NodeHasError != null)
     {
         NodeHasError(this, new NodeEventArgs(node.Id, errorMessage));
     }
 }
Example #8
0
 public static IEnumerable <IRunnableNode> GetPreviousNodes(IRunnableNode node)
 {
     return(node.PreviousNodes);
 }
 public void OnNodeExecuting(IRunnableNode node)
 {
     if (NodeExecuting != null)
     {
         NodeExecuting(this, new NodeEventArgs(node.Id));
     }
 }
Example #10
0
 /// <summary>
 /// Adds the node to the collection of successor nodes.
 /// </summary>
 /// <param name="nextNode">The next node.</param>
 public virtual void AddNextNode(IRunnableNode nextNode)
 {
     NextNodes.Add(nextNode);
 }
Example #11
0
 /// <summary>
 /// Adds the node to the collection of predecessor nodes.
 /// </summary>
 /// <param name="previousNode">The previous node.</param>
 public void AddPreviousNode(IRunnableNode previousNode)
 {
     PreviousNodes.Add(previousNode);
 }
 public static IEnumerable<IRunnableNode> GetPreviousNodes(IRunnableNode node)
 {
     return node.PreviousNodes;
 }
 /// <summary>
 /// Adds the node to the collection of predecessor nodes.
 /// </summary>
 /// <param name="previousNode">The previous node.</param>
 public void AddPreviousNode(IRunnableNode previousNode)
 {
     PreviousNodes.Add(previousNode);
 }
 /// <summary>
 /// Adds the node to the collection of successor nodes.
 /// </summary>
 /// <param name="nextNode">The next node.</param>
 public virtual void AddNextNode(IRunnableNode nextNode)
 {
     NextNodes.Add(nextNode);
 }
Example #15
0
 private static void AddDirectedEdgeImpl(IRunnableNode from, IRunnableNode to)
 {
     from.AddNextNode(to);
     to.AddPreviousNode(from);
 }
 /// <summary>
 /// Adds the next successor node. It also stores the node in the candidate nodes.
 /// </summary>
 /// <param name="node">The node.</param>
 public override void AddNextNode(IRunnableNode node)
 {
     base.AddNextNode(node);
     m_candidateNodes.Add(node);
 }