public class RiskAnalysisResult extends Object
Represents a result of risk analysis.
Modifier and Type | Method and Description |
---|---|
RiskItemStatisticsCollection |
getRiskItems(int itemType)
Returns an instance of the
RiskItemStatisticsCollection for the specified risk type. |
void |
saveReport(InputStream stream)
Saves the risk analysis report to the stream in PDF format.
|
void |
saveReport(String fileName)
Saves the risk analysis report to the specified file path in PDF format.
|
public final RiskItemStatisticsCollection getRiskItems(int itemType)
Returns an instance of the RiskItemStatisticsCollection
for the specified risk type.
itemType
- the specified risk type; can be one of the values of the RiskItemType
enumeration.RiskItemStatisticsCollection
for the specified risk type.public final void saveReport(String fileName) throws IOException
Saves the risk analysis report to the specified file path in PDF format.
fileName
- The specified file name.IOException
public final void saveReport(InputStream stream) throws IOException
Saves the risk analysis report to the stream in PDF format.
stream
- The stream to save risk analysis report to.IOException