ilog.rules.dvs.core.impl

Class IlrScenarioImpl

  • java.lang.Object
    • ilog.rules.dvs.core.impl.IlrScenarioImpl
  • All Implemented Interfaces:
    IlrScenario


    public class IlrScenarioImpl
    extends java.lang.Object
    implements IlrScenario
    A simple JavaBeans implementation of the IlrScenario interface. Use this class when you develop custom scenario providers.
    Since:
    7.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrScenarioImpl() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getDescription()
      Returns the description for this scenario.
      java.util.Map<java.lang.String,java.lang.Object> getInputParameters()
      Returns a Map containing the input parameters passed to the ruleset for this scenario.
      java.lang.String getName()
      Returns the scenario name.
      IlrTraceTester getTraceTester()
      Returns the IlrTraceTester defined for this scenario.
      void setDescription(java.lang.String theDescription)
      Sets the description.
      void setExceptionOnInputParameters(java.lang.Exception exceptionOnInputParameters)
      Sets the Exception to be thrown by getInputParameters() when it is called.
      void setInputParameters(java.util.Map<java.lang.String,java.lang.Object> theInputParameters)
      Sets the input parameters.
      void setName(java.lang.String theName)
      Sets the scenario name.
      void setTraceTester(IlrTraceTester theTraceTester)
      Sets the trace tester.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrScenarioImpl

        public IlrScenarioImpl()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the scenario name.
        Specified by:
        getName in interface IlrScenario
        Returns:
        The scenario name.
      • getDescription

        public java.lang.String getDescription()
        Returns the description for this scenario. This description is optional.
        Specified by:
        getDescription in interface IlrScenario
        Returns:
        The scenario description. If no description has been added for this scenario, null is returned.
      • getInputParameters

        public java.util.Map<java.lang.String,java.lang.Object> getInputParameters()
                                                                            throws IlrScenarioDataException
        Returns a Map containing the input parameters passed to the ruleset for this scenario. The parameter names and types have to be the ones expected in the ruleset signature. If setExceptionOnInputParameters(Exception) has been previously called with a non-null value, this method throws the exception again.
        Specified by:
        getInputParameters in interface IlrScenario
        Throws:
        IlrScenarioDataException
        Returns:
        The input parameters passed to the ruleset for this scenario.
      • getTraceTester

        public IlrTraceTester getTraceTester()
        Returns the IlrTraceTester defined for this scenario. An IlrTraceTester instance defines the expected results and expected execution results for a scenario.
        Specified by:
        getTraceTester in interface IlrScenario
        Returns:
        The trace tester defined for this scenario. If no IlrTraceTester is defined for this scenario, null is returned.
      • setExceptionOnInputParameters

        public void setExceptionOnInputParameters(java.lang.Exception exceptionOnInputParameters)
        Sets the Exception to be thrown by getInputParameters() when it is called.
        Parameters:
        exceptionOnInputParameters - The Exception to be thrown by getInputParameters() when it is called.
      • setName

        public void setName(java.lang.String theName)
        Sets the scenario name.
        Parameters:
        theName - The scenario name.
      • setTraceTester

        public void setTraceTester(IlrTraceTester theTraceTester)
        Sets the trace tester.
        Parameters:
        theTraceTester - The trace tester.
      • setDescription

        public void setDescription(java.lang.String theDescription)
        Sets the description.
        Parameters:
        theDescription - The description.
      • setInputParameters

        public void setInputParameters(java.util.Map<java.lang.String,java.lang.Object> theInputParameters)
        Sets the input parameters.
        Parameters:
        theInputParameters - The input parameters.

© Copyright IBM Corp. 1987, 2017