ilog.rules.dvs.excel

Interface IlrExcel2003ScenarioSuiteWorkbook



  • public interface IlrExcel2003ScenarioSuiteWorkbook
    Encapsulates an Excel 2003 workbook that defines an scenario suite. Call the IlrExcel2003ScenarioSuiteWorkbookFactory singleton to create a workbook instance.
    • Method Detail

      • useFlatMode

        boolean useFlatMode()
                            throws IlrExcel2003ScenarioSuiteDataException
        Tests if this scenario file is in flat mode. Excel scenario files can be generated in one of the two following modes:
        • Tabbed mode: all input parameters are defined in the Scenarios worksheet, but linked objects are defined in their own worksheet (one dedicated worksheet for each type of linked object).
        • Flat mode: all input parameters and all linked objects are defined in the Scenarios worksheet.
        Throws:
        IlrExcel2003ScenarioSuiteDataException - when invalid data is found in an Excel 2003 scenario file.
        Returns:
        true if the scenario file is in flat mode.
      • getScenarioNames

        java.util.List<java.lang.String> getScenarioNames()
                                                          throws IlrExcel2003ScenarioSuiteDataException
        Returns a list of the scenario IDs.
        Throws:
        IlrExcel2003ScenarioSuiteDataException - when invalid data is found in an Excel 2003 scenario file.
        Returns:
        A list of the scenario IDs. This list is sorted in the same order that the scenario ID are declared in the Scenarios sheet.
      • includesExpectedResultsSheet

        boolean includesExpectedResultsSheet()
        Does this workbook includes a sheet that defines expected results?
        Returns:
        true if the workbook includes a sheet that defines expected results, false otherwise.
      • includesExpectedExecutionDetailsSheet

        boolean includesExpectedExecutionDetailsSheet()
        Does this workbook includes a sheet that defines expected execution details?
        Returns:
        true if the workbook includes a sheet that defines expected execution details, false otherwise.
      • getNumberOfObjectsInSheet

        int getNumberOfObjectsInSheet(java.lang.String theSheetName)
        Returns the number of objects defined in a workbook sheet, for example the Scenarios sheet.
        Parameters:
        theSheetName - The name of the sheet.
        Returns:
        The number of scenarios defined in theSheetName. If the sheet does not exist, 0 is returned.
      • isExcel2003Workbook

        boolean isExcel2003Workbook()
        Test if the workbook is an Excel 2003 workbook
        Since:
        7.5
        Returns:
        true if the workbook is an Excel 2003 workbook
      • isExcel2007Workbook

        boolean isExcel2007Workbook()
        Test if the workbook is an Excel 2007 workbook
        Since:
        7.5
        Returns:
        true if the workbook is an Excel 2007 workbook

© Copyright IBM Corp. 1987, 2017