Exemple #1
0
        public async Task <ProgressiveVolumesResponse> ExecuteAsync(ProgressiveVolumesRequestArgument arg)
        {
            var request = new ProgressiveVolumesRequest_ClusterCompute();

            _log.LogInformation("Executing ProgressiveVolumesRequestComputeFunc_ApplicationService.ExecuteAsync()");

            // Calculate the volumes and convert the grid bounding rectangle into WGS 84 lat/long to return to the caller.
            return(ConvertBoundaryFromGridToWGS84(arg.ProjectID, await request.ExecuteAsync(arg)));
        }
Exemple #2
0
        public async Task ClusterCompute_DefaultFilterToFilter_Execute_NoData()
        {
            AddApplicationGridRouting();
            AddClusterComputeGridRouting();

            var request  = new ProgressiveVolumesRequest_ClusterCompute();
            var response = await request.ExecuteAsync(DefaultRequestArg(Guid.NewGuid()));

            // This is a no data test, so the response will be null
            CheckResponseContainsNullValues(response);
        }
Exemple #3
0
        public async Task ClusterCompute_DefaultFilterToFilter_Execute_SingleCell()
        {
            AddClusterComputeGridRouting();

            var baseTime  = DateTime.UtcNow;
            var siteModel = BuildModelForSingleCellProgressiveVolume(10, baseTime, new TimeSpan(0, 1, 0), 1.0f, ELEVATION_INCREMENT_0_5);

            var request  = new ProgressiveVolumesRequest_ClusterCompute();
            var response = await request.ExecuteAsync(DefaultRequestArgFromModel(siteModel, VolumeComputationType.Between2Filters));

            CheckDefaultSingleCellAtOriginResponse(response);
        }
Exemple #4
0
        public async Task ClusterCompute_DefaultFilterToFilter_Execute_SingleTAGFile()
        {
            AddClusterComputeGridRouting();

            var tagFiles = new[]
            {
                Path.Combine(TestHelper.CommonTestDataPath, "TestTAGFile.tag"),
            };

            var siteModel = DITAGFileAndSubGridRequestsFixture.BuildModel(tagFiles, out _);

            var request  = new ProgressiveVolumesRequest_ClusterCompute();
            var response = await request.ExecuteAsync(DefaultRequestArgFromModel(siteModel, VolumeComputationType.Between2Filters));

            response.Should().NotBeNull();

            CheckDefaultFilterToFilterSingleTAGFileResponse(response);

            response.Volumes.Length.Should().Be(10);
        }
Exemple #5
0
        public async Task ClusterCompute_SurfaceToDefaultFilter_Execute_SingleCell()
        {
            AddClusterComputeGridRouting();
            AddDesignProfilerGridRouting();

            var baseTime      = DateTime.UtcNow;
            var timeIncrement = new TimeSpan(0, 1, 0);

            var siteModel = BuildModelForSingleCellProgressiveVolume(10, baseTime, timeIncrement, 1.0f, ELEVATION_INCREMENT_0_5);
            var request   = new ProgressiveVolumesRequest_ClusterCompute();
            var designUid = DITAGFileAndSubGridRequestsWithIgniteFixture.ConstructSingleFlatTriangleDesignAboutOrigin(ref siteModel, 0.0f);

            var arg = DefaultRequestArgFromModel(siteModel, VolumeComputationType.BetweenDesignAndFilter);

            arg.BaseDesign = new DesignOffset(designUid, 0);

            var response = await request.ExecuteAsync(arg);

            CheckDefaultSingleCellAtOriginResponse(response);

            response.Volumes.Length.Should().Be(11);
        }