///////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////
 public BuildRoutesOperation(SolverContext context,
     Schedule schedule,
     SolveOptions options,
     BuildRoutesParameters inputParams)
     : base(context, schedule, options)
 {
     Debug.Assert(inputParams != null);
     _inputParams = inputParams;
 }
示例#2
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////

        public BuildRoutesOperation(SolverContext context,
                                    Schedule schedule,
                                    SolveOptions options,
                                    BuildRoutesParameters inputParams)
            : base(context, schedule, options)
        {
            Debug.Assert(inputParams != null);
            _inputParams = inputParams;
        }
示例#3
0
        /// <summary>
        /// Asynchronously builds routes for specified schedule.
        /// </summary>
        /// <param name="schedule">Schedule object.</param>
        /// <param name="options">Solve options.</param>
        /// <param name="inputParams">Input parameters for build route operation.</param>
        /// <returns>
        /// Operation id.
        /// </returns>
        public Guid BuildRoutesAsync(Schedule schedule,
                                     SolveOptions options,
                                     BuildRoutesParameters inputParams)
        {
            BuildRoutesOperation operation = new BuildRoutesOperation(_context,
                                                                      schedule,
                                                                      options,
                                                                      inputParams);

            return(_RunAsync(operation));
        }
 public BuildRoutesOperation(SolverContext context,
     Schedule schedule,
     SolveOptions options,
     SolveRequestData reqData,
     List<Violation> violations,
     BuildRoutesParameters inputParams)
     : base(context, schedule, options)
 {
     Debug.Assert(reqData != null);
     Debug.Assert(violations != null);
     Debug.Assert(inputParams != null);
     _reqData = reqData;
     _violations = violations;
     _inputParams = inputParams;
 }
示例#5
0
 public BuildRoutesOperation(SolverContext context,
                             Schedule schedule,
                             SolveOptions options,
                             SolveRequestData reqData,
                             List <Violation> violations,
                             BuildRoutesParameters inputParams)
     : base(context, schedule, options)
 {
     Debug.Assert(reqData != null);
     Debug.Assert(violations != null);
     Debug.Assert(inputParams != null);
     _reqData     = reqData;
     _violations  = violations;
     _inputParams = inputParams;
 }