Decision Table - Program Embedded Decision Tables

Program Embedded Decision Tables

Decision tables can be, and often are, embedded within computer programs and used to 'drive' the logic of the program. A simple example might be a lookup table containing a range of possible input values and a function pointer to the section of code to process that input.

Static decision table
Input Function Pointer
'1' Function 1 (initialize)
'2' Function 2 (process 2)
'9' Function 9 (terminate)

Multiple conditions can be coded for in similar manner to encapsulate the entire program logic in the form of an 'executable' decision table or control table.

Read more about this topic:  Decision Table

Famous quotes containing the words program, embedded, decision and/or tables:

    [T]he Congregational minister in a neighboring town definitely stated that ‘the same spirit which drove the herd of swine into the sea drove the Baptists into the water, and that they were hurried along by the devil until the rite was performed.’
    —For the State of Vermont, U.S. public relief program (1935-1943)

    It was your severed image that grew sweeter,
    That floated, wing-stiff, focused in the sun
    Along uncertainty and gales of shame
    Blown out before I slept. Now you are one
    I dare not think alive: only a name
    That chimes occasionally, as a belief
    Long since embedded in the static past.
    Philip Larkin (1922–1986)

    Every decision is liberating, even if it leads to disaster. Otherwise, why do so many people walk upright and with open eyes into their misfortune?
    Elias Canetti (b. 1905)

    Eddie Felson: Church of the Good Hustler.
    Charlie: Looks more like a morgue to me. Those tables are the slabs they lay the stiffs on.
    Eddie Felson: I’ll be alive when I get out, Charlie.
    Sydney Carroll, U.S. screenwriter, and Robert Rossen. Eddie Felson (Paul Newman)