public class SelectionGoal extends Goal
Constructor and Description |
---|
SelectionGoal(String id) |
SelectionGoal(String id,
Boolean failable,
Boolean unique_solution) |
SelectionGoal(String id,
String supergoal,
Boolean unique_solution) |
Modifier and Type | Method and Description |
---|---|
void |
add_correct_choice(String correct_choice) |
void |
add_incorrect_choice(String incorrect_choice) |
List<String> |
get_correct_choices() |
List<String> |
get_incorrect_choices() |
Integer |
get_n_correct_choices() |
Integer |
get_n_incorrect_choices() |
void |
set_correct_choices(List<String> correct_choices) |
void |
set_incorrect_choices(List<String> incorrect_choices) |
void |
set_n_correct_choices(Integer n_correct_choices) |
void |
set_n_incorrect_choices(Integer n_incorrect_choices) |
JSONObject |
to_json()
The Goal is converted to JSON format
|
InfantiumResponse |
validate_goal(List<String> elements_list) |
get_appears, get_auto_eval, get_id, get_instructions, get_needed_action, get_supergoal, get_t, get_time_limit, get_unique_solution, set_appears, set_auto_eval, set_id, set_instructions, set_needed_action, set_supergoal, set_t, set_time_limit, set_unique_solution
public SelectionGoal(String id)
id
- public SelectionGoal(String id, Boolean failable, Boolean unique_solution)
id
- unique_solution
- public void set_correct_choices(List<String> correct_choices)
correct_choices
- the correct_choices to setpublic void add_correct_choice(String correct_choice)
correct_choice
- the correct_choice to addpublic Integer get_n_correct_choices()
public void set_n_correct_choices(Integer n_correct_choices)
n_correct_choices
- the n_correct_choices to setpublic void set_incorrect_choices(List<String> incorrect_choices)
incorrect_choices
- the incorrect_choices to setpublic void add_incorrect_choice(String incorrect_choice)
incorrect_choice
- the incorrect_choice to setpublic Integer get_n_incorrect_choices()
public void set_n_incorrect_choices(Integer n_incorrect_choices)
n_incorrect_choices
- the n_incorrect_choices to setpublic InfantiumResponse validate_goal(List<String> elements_list)
validate_goal
in class Goal
public JSONObject to_json() throws JSONException
Goal
to_json
in class Goal
JSONException