Esempio n. 1
0
 /// <summary>
 /// Returns <c>true</c> if and only if each vertex in this placement has the same location as the vertex
 /// with the same ID in the <paramref name="other"/> placement, and vice versa.
 /// </summary>
 /// <param name="other">The other placement.</param>
 /// <returns><c>true</c> if and only if each vertex in this placement has the same location as the vertex
 /// with the same ID in the <paramref name="other"/> placement, and vice versa.</returns>
 public override bool Equals(Placement other)
 {
     return(this.locations.SequenceEqual(other));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns <c>true</c> if and only if each vertex in this placement has the same location as the vertex
 /// with the same ID in the <paramref name="other"/> placement, and vice versa.
 /// </summary>
 /// <param name="other">The other placement.</param>
 /// <returns><c>true</c> if and only if each vertex in this placement has the same location as the vertex
 /// with the same ID in the <paramref name="other"/> placement, and vice versa.</returns>
 public abstract bool Equals(Placement other);
Esempio n. 3
0
        internal static Stream <S, Epoch> MakeStage(DataSource <S> source, InternalComputation internalComputation, Placement placement, string inputName)
        {
            var stage = new StreamingInputStage <S>(source, placement, internalComputation, inputName);

            return(stage);
        }