Retrieves the results of a Touchstone® Geospatial Analysis by
Layer.
A Layer defines a range of loss in an insurance contract. For example, one layer might cover losses up to $10M, and a second layer might cover losses from $10M to $20M.
The Geospatial Analysis for which you want to retrieve results by Layer could have a Ring, Zone, or Event accumulator. Each result in the list of Geospatial Analysis results by Layer contains the Layer ID, risk count, and accumulator type, as well as the total replacement value of the insured properties in the specified Layer.
Parameters
- request
- Contains a GetExposureConcentrationAnalysisLayerResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) and Accumulator SID of the Geospatial Analysis for which you want to retrieve the results by Layer, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.
Return Value
A
GetExposureConcentrationAnalysisLayerResultsResponse containing the
results of the Geospatial Analysis by Layer that you have requested, as well as information describing the actual
paging layout of the analysis results.
The following example shows how to retrieve the results of a Touchstone Geospatial Analysis by Layer using the
GetExposureConcentrationAnalysisLayerResults()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
class SnippetGetExposureConcentrationAnalysisLayerResultsRequest
{
private static void GetExposureConcentrationAnalysisLayerResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
GetExposureConcentrationAnalysisLayerResultsRequest request = new GetExposureConcentrationAnalysisLayerResultsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
/// Implement logic to loop through all the records.
int page = 1; int pageSize = 20;
request.PagingInfo = new PagingInfo { PageNumber = page, PageSize = pageSize };
GetExposureConcentrationAnalysisLayerResultsResponse response = ecaClient.GetExposureConcentrationAnalysisLayerResults(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (LayerResult result in response.LayerResults)
{
Console.WriteLine("Layer ID: " + result.LayerID);
Console.WriteLine("Insured Name: " + result.InsuredName);
Console.WriteLine("Contract ID: " + result.ContractID);
Console.WriteLine("Total Replacement Value: " + result.TotalReplacementValue);
Console.WriteLine("Peril: " + result.PerilDescription);
}
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2