Package ilog.rules.studio.dvs.execution

Provides a set of abstract classes that you can extend to create and customize a new Eclipse launcher to execute a DVS archive.

See: Description

Package ilog.rules.studio.dvs.execution Description

Provides a set of abstract classes that you can extend to create and customize a new Eclipse launcher to execute a DVS archive.

To declare a custom launcher you must do the following tasks:

  • Extend the IlrDVSLaunchConfigurationDelegate abstract class and implement the launch(ILaunchConfiguration, String, ILaunch, IProgressMonitor) method. The following code shows an example method implementation:
     
            public void launch(ILaunchConfiguration configuration, String mode,
                            ILaunch launch, IProgressMonitor monitor) throws CoreException {
                    // get the attribute values 
                    String dvsarchivePath = getValue(configuration, IlrDVSArchiveLaunchConfigurationConstants.DVS_ARCHIVE, null);
                    
                    // execute the DVS runner 
                    run(configuration, mode, launch, monitor, "ilog.rules.studio.dvs.execution.IlrDVSArchiveRunner", 
                                                    new String[] {dvsarchivePath});
            }
    
  • Extend the IlrDVSRunner abstract class and implement a main method. The following code shows an example method implementation:
            public static void main(String[] args) {
                    IlrDVSArchiveRunner runner = new IlrDVSArchiveRunner();
                    String[] strings = runner.extractCustomArgs(args);
                String dvsarchivePath = strings[0];
                    try {
                            IlrScenarioSuiteDescriptor scenarioSuite = runner.createScenarioSuiteDescriptorFromDVSTestingAndSimulationArchive(
                                                                    new File(dvsarchivePath));
                            runner.run(args, scenarioSuite);
                    } catch (Exception e) {
                            e.printStackTrace();
                    }       
            }
    
  • Use the classes in the ilog.rules.studio.dvs.ui.execution package to implement these methods in the interface.

    Since:
    JRules 7.0
    Rule Designer API

    © Copyright IBM Corp. 1987, 2017