public class TappingGoal extends Goal
Constructor and Description |
---|
TappingGoal(String id) |
TappingGoal(String id,
List<String> element_ids_to_tap) |
TappingGoal(String id,
List<String> element_ids_to_tap,
Boolean unique_solution) |
TappingGoal(String id,
List<String> element_ids_to_tap,
String supergoal,
Boolean unique_solution) |
TappingGoal(String id,
String reserved_word) |
Modifier and Type | Method and Description |
---|---|
void |
add_target(String target)
Add a single target to the Tapping goal
|
void |
add_targets(List<String> targets)
Add a list of targets to the Tapping goal
|
List<String> |
get_targets() |
void |
set_targets(List<String> targets)
Override the list of targets of the Tapping goal
|
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 TappingGoal(String id)
id
- public TappingGoal(String id, String reserved_word)
id
- reserved_word
- The word ALL can be passed as a parameter.public TappingGoal(String id, List<String> element_ids_to_tap)
id
- element_ids_to_tap
- public TappingGoal(String id, List<String> element_ids_to_tap, Boolean unique_solution)
id
- element_ids_to_tap
- unique_solution
- public void set_targets(List<String> targets)
targets
- the targets to setpublic void add_target(String target)
target
- the target to setpublic void add_targets(List<String> targets)
targets
- public 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