src/java/isac/wsdialog/IUIElement.java
author wneuper
Wed, 15 Jun 2005 18:31:02 +0200
branchjava_rename_format
changeset 3922 fcd5648113ca
permissions -rw-r--r--
java: isac.util.tactics .. end renamed, formatted, inst_var_, import cleaned
wneuper@3922
     1
/*
wneuper@3922
     2
 * Created on Dec 12, 2003
wneuper@3922
     3
 */
wneuper@3922
     4
package isac.wsdialog;
wneuper@3922
     5
wneuper@3922
     6
/**
wneuper@3922
     7
 * @author Alan Krempler
wneuper@3922
     8
 * 
wneuper@3922
     9
 * Constants describing interactions or request from the user
wneuper@3922
    10
 */
wneuper@3922
    11
public interface IUIElement {
wneuper@3922
    12
wneuper@3922
    13
    /** ***************** NOTIFICATIONS: SPECIFYING PHASE ********************** */
wneuper@3922
    14
wneuper@3922
    15
    public static final int UI_DUMMY_FIRST_SPECIFY = 1;
wneuper@3922
    16
wneuper@3922
    17
    /**
wneuper@3922
    18
     * get descriptions into all items of a model; these give hints for input to
wneuper@3922
    19
     * the user
wneuper@3922
    20
     */
wneuper@3922
    21
    public static final int UI_SPECIFY_GET_DESCRIPTIONS = 2;
wneuper@3922
    22
wneuper@3922
    23
    /**
wneuper@3922
    24
     * During the specifying phase, try to match a problem type to the data
wneuper@3922
    25
     * entered so far WN //// ?items of the model entered so far
wneuper@3922
    26
     */
wneuper@3922
    27
    public static final int UI_SPECIFY_TRY_MATCH = 2;
wneuper@3922
    28
wneuper@3922
    29
    /**
wneuper@3922
    30
     * During the specifying phase, try to refine the problem type. WN ////
wneuper@3922
    31
     */
wneuper@3922
    32
    public static final int UI_SPECIFY_TRY_REFINE = 3;
wneuper@3922
    33
wneuper@3922
    34
    /**
wneuper@3922
    35
     * During the specifying phase, change the view on the CalcHead.
wneuper@3922
    36
     */
wneuper@3922
    37
    public static final int UI_SPECIFY_CHANGE_VIEW = 4;
wneuper@3922
    38
wneuper@3922
    39
    /**
wneuper@3922
    40
     * During the specifying phase, have the CalcHead completed by the math
wneuper@3922
    41
     * engine.
wneuper@3922
    42
     */
wneuper@3922
    43
    public static final int UI_SPECIFY_COMPLETE_CALCHEAD = 5;
wneuper@3922
    44
wneuper@3922
    45
    /**
wneuper@3922
    46
     * During the specifying phase, have the Method field of the CalcHead
wneuper@3922
    47
     * completed by the math engine.
wneuper@3922
    48
     */
wneuper@3922
    49
    public static final int UI_SPECIFY_COMPLETE_METHOD = 6;
wneuper@3922
    50
wneuper@3922
    51
    /**
wneuper@3922
    52
     * During the specifying phase, have the Theory field of the CalcHead
wneuper@3922
    53
     * completed by the math engine.
wneuper@3922
    54
     */
wneuper@3922
    55
    public static final int UI_SPECIFY_COMPLETE_THEORY = 7;
wneuper@3922
    56
wneuper@3922
    57
    /**
wneuper@3922
    58
     * During the specifying phase, have the Problem field of the CalcHead
wneuper@3922
    59
     * completed by the math engine.
wneuper@3922
    60
     */
wneuper@3922
    61
    public static final int UI_SPECIFY_COMPLETE_PROBLEM = 8;
wneuper@3922
    62
wneuper@3922
    63
    /**
wneuper@3922
    64
     * During the specifying phase, have the Given field of the CalcHead
wneuper@3922
    65
     * completed by the math engine.
wneuper@3922
    66
     */
wneuper@3922
    67
    public static final int UI_SPECIFY_COMPLETE_GIVEN = 9;
wneuper@3922
    68
wneuper@3922
    69
    /**
wneuper@3922
    70
     * During the specifying phase, have the Find field of the CalcHead
wneuper@3922
    71
     * completed by the math engine.
wneuper@3922
    72
     */
wneuper@3922
    73
    public static final int UI_SPECIFY_COMPLETE_FIND = 10;
wneuper@3922
    74
wneuper@3922
    75
    /**
wneuper@3922
    76
     * During the specifying phase, have the Relate field of the CalcHead
wneuper@3922
    77
     * completed by the math engine.
wneuper@3922
    78
     */
wneuper@3922
    79
    public static final int UI_SPECIFY_COMPLETE_RELATE = 11;
wneuper@3922
    80
wneuper@3922
    81
    /**
wneuper@3922
    82
     * During the specifying phase, have the CalcHead checked for completeness
wneuper@3922
    83
     * and consistency.
wneuper@3922
    84
     */
wneuper@3922
    85
    public static final int UI_SPECIFY_CHECK_CALCHEAD = 12;
wneuper@3922
    86
wneuper@3922
    87
    /**
wneuper@3922
    88
     * Leave the specifying phase, enter the solving phase and calculate the
wneuper@3922
    89
     * first step of the method.
wneuper@3922
    90
     */
wneuper@3922
    91
    public static final int UI_SPECIFY_TO_SOLVE = 13;
wneuper@3922
    92
wneuper@3922
    93
    /**
wneuper@3922
    94
     * Leave the specifying phase, enter the solving phase and calculate until a
wneuper@3922
    95
     * final result is reached.
wneuper@3922
    96
     */
wneuper@3922
    97
    public static final int UI_SPECIFY_CALCULATE_ALL = 14;
wneuper@3922
    98
wneuper@3922
    99
    public static final int UI_DUMMY_LAST_SPECIFY = 14;
wneuper@3922
   100
wneuper@3922
   101
    /** ***************** NOTIFICATIONS: SOLVING PHASE ********************** */
wneuper@3922
   102
wneuper@3922
   103
    public static final int UI_DUMMY_FIRST_SOLVE = 21;
wneuper@3922
   104
wneuper@3922
   105
    /**
wneuper@3922
   106
     * During the solving phase, calculate one more step.
wneuper@3922
   107
     */
wneuper@3922
   108
    public static final int UI_SOLVE_CALCULATE_1 = 21;
wneuper@3922
   109
wneuper@3922
   110
    /**
wneuper@3922
   111
     * During the solving phase, calculate until a final result is reached.
wneuper@3922
   112
     */
wneuper@3922
   113
    public static final int UI_SOLVE_CALCULATE_ALL = 22;
wneuper@3922
   114
wneuper@3922
   115
    /**
wneuper@3922
   116
     * During the solving phase, calculate until the current subproblem is
wneuper@3922
   117
     * solved.
wneuper@3922
   118
     */
wneuper@3922
   119
    public static final int UI_SOLVE_CALCULATE_SUBPROBLEM = 23;
wneuper@3922
   120
wneuper@3922
   121
    /**
wneuper@3922
   122
     * During the solving phase, request editing the currently active formula.
wneuper@3922
   123
     * 
wneuper@3922
   124
     * WN0412 If request is conceded, do
wneuper@3922
   125
     * 
wneuper@3922
   126
     * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
wneuper@3922
   127
     */
wneuper@3922
   128
    public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA = 24;
wneuper@3922
   129
wneuper@3922
   130
    /**
wneuper@3922
   131
     * During the solving phase, notify that editing the currently active
wneuper@3922
   132
     * formula is finished. This implies a request for updating the CalcTree.
wneuper@3922
   133
     */
wneuper@3922
   134
    public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE = 25;
wneuper@3922
   135
wneuper@3922
   136
    /**
wneuper@3922
   137
     * During the solving phase, request inserting a new formula _after_ the
wneuper@3922
   138
     * currently active formula, making the new formula the currently active
wneuper@3922
   139
     * formula. At present, this does not imply editing the formula and must be
wneuper@3922
   140
     * requested in a separate step. WN0412: ...??? is this right interpreted by
wneuper@3922
   141
     * ... WN0412 If request is conceded, do
wneuper@3922
   142
     * 
wneuper@3922
   143
     * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
wneuper@3922
   144
     */
wneuper@3922
   145
    public static final int UI_SOLVE_APPEND_USER_FORMULA = 26;
wneuper@3922
   146
wneuper@3922
   147
    /**
wneuper@3922
   148
     * During the solving phase, request making the referened formula the
wneuper@3922
   149
     * currently active formula.
wneuper@3922
   150
     */
wneuper@3922
   151
    public static final int UI_SOLVE_MOVE_ACTIVE_FORMULA = 27;
wneuper@3922
   152
wneuper@3922
   153
    /**
wneuper@3922
   154
     * During the solving phase, ask for the tactic the math engine would apply
wneuper@3922
   155
     * to the current formula.
wneuper@3922
   156
     */
wneuper@3922
   157
    public static final int UI_SOLVE_GET_PROPOSED_TACTIC = 30;
wneuper@3922
   158
wneuper@3922
   159
    /**
wneuper@3922
   160
     * During the solving phase, ask for a list of tactics to the current
wneuper@3922
   161
     * formula.
wneuper@3922
   162
     */
wneuper@3922
   163
    public static final int UI_SOLVE_GET_APPLICABLE_TACTICS = 31;
wneuper@3922
   164
wneuper@3922
   165
    /**
wneuper@3922
   166
     * During the solving phase, set the tactic to be applied to the current
wneuper@3922
   167
     * formula.
wneuper@3922
   168
     */
wneuper@3922
   169
    public static final int UI_SOLVE_SET_NEXT_TACTIC = 32;
wneuper@3922
   170
wneuper@3922
   171
    /**
wneuper@3922
   172
     * When entering a formula during the solving phase, request help on
wneuper@3922
   173
     * entering the formula.
wneuper@3922
   174
     */
wneuper@3922
   175
    public static final int UI_SOLVE_HELP_ENTERING_FORMULA = 33;
wneuper@3922
   176
wneuper@3922
   177
    /**
wneuper@3922
   178
     * During the solving phase, show which assumptions hold at the current
wneuper@3922
   179
     * point of calculation.
wneuper@3922
   180
     */
wneuper@3922
   181
    public static final int UI_SOLVE_SHOW_ASSUMPTIONS = 40;
wneuper@3922
   182
wneuper@3922
   183
    /**
wneuper@3922
   184
     * During the solving phase, request more detail about the currently
wneuper@3922
   185
     * referenced element.
wneuper@3922
   186
     */
wneuper@3922
   187
    public static final int UI_SOLVE_SHOW_DETAILS = 41;
wneuper@3922
   188
wneuper@3922
   189
    public static final int UI_DUMMY_LAST_SOLVE = 41;
wneuper@3922
   190
wneuper@3922
   191
    /** ***************** NOTIFICATIONS: unaware of PHASE **************** */
wneuper@3922
   192
wneuper@3922
   193
    public static final int UI_CALCULATE_1 = 101;
wneuper@3922
   194
wneuper@3922
   195
    public static final int UI_CALCULATE_ALL = 102;
wneuper@3922
   196
wneuper@3922
   197
    /** ***************** ACTIVE REQUESTS TO THE UI ********************** */
wneuper@3922
   198
wneuper@3922
   199
    /**
wneuper@3922
   200
     * Request editing the currently active formula. DG distinguishes between
wneuper@3922
   201
     * SPECIFY and SOLVE; thus could drop UI_SOLVE_EDIT_ACTIVE_FORMULA : int
wneuper@3922
   202
     */
wneuper@3922
   203
    public static final int UI_DO_EDIT_FORMULA = 129;
wneuper@3922
   204
wneuper@3922
   205
    /**
wneuper@3922
   206
     * Request appending a new, empty formula.
wneuper@3922
   207
     */
wneuper@3922
   208
    public static final int UI_DO_APPEND_FORMULA = 130;
wneuper@3922
   209
wneuper@3922
   210
    /**
wneuper@3922
   211
     * Activate an UI element.
wneuper@3922
   212
     */
wneuper@3922
   213
    public static final int UI_DO_ACTIVATE = 131;
wneuper@3922
   214
wneuper@3922
   215
    /**
wneuper@3922
   216
     * Deactivate an UI element.
wneuper@3922
   217
     */
wneuper@3922
   218
    public static final int UI_DO_DEACTIVATE = 132;
wneuper@3922
   219
wneuper@3922
   220
    /**
wneuper@3922
   221
     * The Dialog Guide has detached the listener and will not send any more
wneuper@3922
   222
     * control requests. If registered as a Data Change Listener, update
wneuper@3922
   223
     * notifications will still arrive!
wneuper@3922
   224
     */
wneuper@3922
   225
    public static final int UI_DO_DETACH = 133; //WN ??? Design ???
wneuper@3922
   226
}