Exemplo n.º 1
0
        public IntegratorShard(int index, Stage <Epoch> stage)
            : base(index, stage)
        {
            this.input  = new VertexInputBuffer <Weighted <R>, Epoch>(this);
            this.output = new VertexOutputBuffer <Weighted <R>, Epoch>(this);

            this.currentIntegration = new Dictionary <R, Int64>();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructs a new UnaryBufferingVertex.
        /// </summary>
        /// <param name="index">vertex index</param>
        /// <param name="stage">host stage</param>
        /// <param name="transformation">transformation from input collection to output collection</param>
        public UnaryBufferingVertex(int index, Stage <TTime> stage, Expression <Func <IEnumerable <TInput>, IEnumerable <TOutput> > > transformation)
            : base(index, stage)
        {
            this.Input = new VertexInputBuffer <TInput, TTime>(this);

            if (transformation != null)
            {
                this.Transformation = transformation.Compile();
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a new SinkBufferingStage
        /// </summary>
        /// <param name="index">vertex index</param>
        /// <param name="stage">host stage</param>
        /// <param name="action">action on input collection</param>
        public SinkBufferingVertex(int index, Stage <TTime> stage, Expression <Action <IEnumerable <TOutput> > > action)
            : base(index, stage)
        {
            this.Input = new VertexInputBuffer <TOutput, TTime>(this);

            if (action != null)
            {
                this.Action = action.Compile();
            }
        }