PrevTopNext

The Decision Table Translator

  • Translates a decision table written as Java comment into Java code, inserted into the Java source file.
  • Generates and includes HTML/Javadoc from the table.
  • An Eclipse plugin compiles when the Java source file is saved.
  • Example:
    DecTabBegin SwitchPosition
    Determine the position for ElementSwitch.
    heartDashed is initialized to false.
    leftShort and rightShort are initialized to true.
    n n n n n n n - | mySwitch.getUndefined()
    n y n n n - y - | mySwitch.getDisturbed()
    y y n n n - - - | mySwitch.getForced()
    - - y n n - - - | mySwitch.getMoving()
    - - - y n y - - | mySwitch.getLeft()
    - - - n y y - - | mySwitch.getRight()
    ================|=========================
    - - x - - x x x | heartDashed = true;
    - - x - - x x x | heartCol = trackColor;
    x x - - - x x x | dRing = Color.BLUE;
    - - - - - x - x | isUndef = true;
    x x - - - - - - | theA  = Color.BLUE;
    - - - x - - - - | leftShort  = false;
    - - - - x - - - | rightShort = false;
    - - - x - - - - | rightColor = secondTrackColor;
    - - - - x - - - | leftColor = secondTrackColor;
    - - - - x - - - | rightColor = trackColor;
    - - - x - - - - | leftColor = trackColor;
    DecTabEnd SwitchPosition
    

PrevTopNext