Package ilog.rules.dt

Class IlrDTTranslator

java.lang.Object
ilog.rules.dt.IlrDTTranslator
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
IlrDTIRLTranslator

public abstract class IlrDTTranslator extends Object implements Cloneable, Serializable
This class convert its associated DT to a code. The only concrete implementation provided by the DT framework is the IlrDTIRLTranslator.
See Also:
  • Field Details

  • Constructor Details

    • IlrDTTranslator

      public IlrDTTranslator(IlrDTController controller)
      This constructor create a Translator for the DT represented by the given controller
      Parameters:
      controller -
  • Method Details

    • getController

      public IlrDTController getController()
      This method returns the controller of the DT associated to this translator
      Returns:
      the controller
    • convertIntoCode

      public abstract String convertIntoCode(Collection errors)
      This method is called to convert the DT associated to this translator into code. Errors that could be generated during the translation process should be returned to the given error collection, if one is provided
      Parameters:
      errors - if not null, this collection is filled with errors that occurs during the translation process
      Returns:
      the resulting code