public static IProgramNode GetConnector(MeasurementSetNode previous, MeasurementSetNode next)
 {
     if (ReferenceEquals(previous.Tool, next.Tool))
     {
         return(new InterMeasurementSetNodeNode(previous, next));
     }
     return(new ChangeToolNode(previous, next));
 }
Exemple #2
0
 public ChangeToolNode(MeasurementSetNode previous, MeasurementSetNode next)
 {
     Previous = previous;
     Next     = next;
     Duration =
         (previous.Path.PathCommands.First().Location
          + previous.Tool.Location
          + next.Tool.Location
          + previous.Path.PathCommands.Last().Location).Duration();
 }
 public InterMeasurementSetNodeNode(MeasurementSetNode previous, MeasurementSetNode next)
 {
     Previous = previous;
     Next     = next;
     Duration = (previous.Path.PathCommands.First().Location + next.Path.PathCommands.Last().Location).Duration();
 }