Beispiel #1
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies a removal.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType  signifies a removal.</returns>
 public static bool IsRemovalChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.RemovePostEdge) ||
            sct.Equals(StructureChangeType.RemovePreEdge) ||
            sct.Equals(StructureChangeType.RemoveCostart) ||
            sct.Equals(StructureChangeType.RemoveCofinish) ||
            sct.Equals(StructureChangeType.RemoveChildEdge));
 }
Beispiel #2
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies an addition.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType  signifies an addition.</returns>
 public static bool IsAdditionChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.AddPostEdge) ||
            sct.Equals(StructureChangeType.AddPreEdge) ||
            sct.Equals(StructureChangeType.AddCostart) ||
            sct.Equals(StructureChangeType.AddCofinish) ||
            sct.Equals(StructureChangeType.NewSynchronizer) ||
            sct.Equals(StructureChangeType.AddChildEdge));
 }
Beispiel #3
0
 /// <summary>
 /// Determines whether StructureChangeType was a pre-edge change.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType signifies a change in a predecessor-edge.
 /// </returns>
 public static bool IsPreEdgeChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.AddPreEdge) || sct.Equals(StructureChangeType.RemovePreEdge));
 }
Beispiel #4
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies a change in a synchronizer.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType  signifies a change in a synchronizer.</returns>
 public static bool IsSynchronizerChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.NewSynchronizer));
 }
Beispiel #5
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies a change in a child.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType  signifies a change in a child.</returns>
 public static bool IsChildChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.AddChildEdge) || sct.Equals(StructureChangeType.RemoveChildEdge));
 }
Beispiel #6
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies a co-finish change.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType signifies a change in a co-finish.</returns>
 public static bool IsCofinishChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.AddCofinish) || sct.Equals(StructureChangeType.RemoveCofinish));
 }
Beispiel #7
0
 /// <summary>
 /// Determines whether the StructureChangeType signifies a co-start change.
 /// </summary>
 /// <param name="sct">The StructureChangeType.</param>
 /// <returns>true if the StructureChangeType signifies a change in a co-start.</returns>
 public static bool IsCostartChange(StructureChangeType sct)
 {
     return(sct.Equals(StructureChangeType.AddCostart) || sct.Equals(StructureChangeType.RemoveCostart));
 }