public interface IlrExcel2003ScenarioSuiteWriter
IlrExcel2003ScenarioSuiteWriterFactory singleton.
A code example showing how the use the writer and the factory is available in the package description ilog.rules.dvs.excel.
| 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.
|
void addScenario(java.lang.String theNameOfTheScenario,
java.lang.String theDescriptionOfTheScenario,
java.util.Map<java.lang.String,java.lang.Object> theScenarioData)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - if an I/O error occurs
while accessing the scenario file.IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.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.void write(java.io.OutputStream theDestination)
throws IlrExcel2003ScenarioSuiteIOException
IlrExcel2003ScenarioSuiteIOException - if an I/O error occurs while
writing the scenario suite.theDestination - The destination to write the scenario suite to.© Copyright IBM Corp. 1987, 2017