Exemplo n.º 1
0
        /// <summary>
        /// Constructions a new buffer from its parent <see cref="VertexOutputBuffer{TRecord,TTime}"/> and a constant logical time.
        /// </summary>
        /// <param name="parent">The parent buffer.</param>
        /// <param name="time">The constant time.</param>
        internal VertexOutputBufferPerTime(VertexOutputBuffer <TRecord, TTime> parent, TTime time)
        {
            this.parent = parent;
            this.Time   = time;

            this.Buffer = new Message <TRecord, TTime>(time);
            this.Buffer.Allocate(AllocationReason.VertexOutputBuffer);
        }
Exemplo n.º 2
0
Arquivo: Input.cs Projeto: omidm/naiad
 internal StreamingInputVertex(int index, Stage <Epoch> stage)
     : base(index, stage)
 {
     this.inputQueue = new System.Collections.Concurrent.ConcurrentQueue <Instruction>();
     this.output     = new VertexOutputBuffer <S, Epoch>(this);
 }