private ReduceReceiver( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <PipelineMessage <T> > topology, ICommunicationGroupNetworkObserver networkHandler, IReduceFunction <T> reduceFunction, IPipelineDataConverter <T> dataConverter) { OperatorName = operatorName; GroupName = groupName; Version = PipelineVersion; ReduceFunction = reduceFunction; PipelineDataConverter = dataConverter; _pipelinedReduceFunc = new PipelinedReduceFunction <T>(ReduceFunction); _topology = topology; var msgHandler = Observer.Create <GeneralGroupCommunicationMessage>(message => topology.OnNext(message)); networkHandler.Register(operatorName, msgHandler); if (initialize) { topology.Initialize(); } }
private ScatterReceiver( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <T> topology) { OperatorName = operatorName; GroupName = groupName; Version = DefaultVersion; _topology = topology; _initialize = initialize; }
private BroadcastSender( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <PipelineMessage <T> > topology, IPipelineDataConverter <T> dataConverter) { _topology = topology; OperatorName = operatorName; GroupName = groupName; Version = PipelineVersion; PipelineDataConverter = dataConverter; _initialize = initialize; }
private ScatterReceiver( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <T> topology, ICommunicationGroupNetworkObserver networkHandler) { OperatorName = operatorName; GroupName = groupName; Version = DefaultVersion; _topology = topology; _initialize = initialize; var msgHandler = Observer.Create <GeneralGroupCommunicationMessage>(message => topology.OnNext(message)); networkHandler.Register(operatorName, msgHandler); }
private ReduceReceiver( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <PipelineMessage <T> > topology, IReduceFunction <T> reduceFunction, IPipelineDataConverter <T> dataConverter) { OperatorName = operatorName; GroupName = groupName; Version = PipelineVersion; ReduceFunction = reduceFunction; PipelineDataConverter = dataConverter; _initialize = initialize; _pipelinedReduceFunc = new PipelinedReduceFunction <T>(ReduceFunction); _topology = topology; }
private BroadcastSender( [Parameter(typeof(GroupCommConfigurationOptions.OperatorName))] string operatorName, [Parameter(typeof(GroupCommConfigurationOptions.CommunicationGroupName))] string groupName, [Parameter(typeof(GroupCommConfigurationOptions.Initialize))] bool initialize, OperatorTopology <PipelineMessage <T> > topology, ICommunicationGroupNetworkObserver networkHandler, IPipelineDataConverter <T> dataConverter) { _topology = topology; OperatorName = operatorName; GroupName = groupName; Version = PipelineVersion; PipelineDataConverter = dataConverter; _initialize = initialize; var msgHandler = Observer.Create <GeneralGroupCommunicationMessage>(message => topology.OnNext(message)); networkHandler.Register(operatorName, msgHandler); }