ilog.rules.dvs.excel

Interface IlrExcel2003ScenarioSuiteWriter



  • public interface IlrExcel2003ScenarioSuiteWriter
    Writes data to an Excel 2003 scenario file. You create an instance of the writer by calling the IlrExcel2003ScenarioSuiteWriterFactory singleton.

    A code example showing how the use the writer and the factory is available in the package description ilog.rules.dvs.excel.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addScenario(java.lang.String theNameOfTheScenario, java.lang.String theDescriptionOfTheScenario, java.util.Map<java.lang.String,java.lang.Object> theScenarioData)
      Adds a scenario to the end of the scenario file.
      void write(java.io.OutputStream theDestination)
      Writes the scenario suite to a stream.
    • Method Detail

      • addScenario

        void addScenario(java.lang.String theNameOfTheScenario,
                       java.lang.String theDescriptionOfTheScenario,
                       java.util.Map<java.lang.String,java.lang.Object> theScenarioData)
                         throws IlrExcel2003ScenarioSuiteIOException,
                                IlrExcel2003ScenarioSuiteDataException
        Adds a scenario to the end of the scenario file.
        Throws:
        IlrExcel2003ScenarioSuiteIOException - if an I/O error occurs while accessing the scenario file.
        IlrExcel2003ScenarioSuiteDataException - when invalid data is found in an Excel 2003 scenario file.
        Parameters:
        theNameOfTheScenario - The ID of this new scenario. An IlrExcel2003ScenarioSuiteDataException is thrown if this parameter is either null, empty when trimmed, or if there is already a scenario with this name in the scenario file.
        theDescriptionOfTheScenario - The (optional) description of the scenario.
        theScenarioData - The scenario data. The keys of the map are the names of the input parameters of the ruleset to test. The values are the XOM instances of the data.

© Copyright IBM Corp. 1987, 2017