public class MatchingGoal extends Goal
Constructor and Description |
---|
MatchingGoal(String id) |
MatchingGoal(String id,
String matching_element) |
MatchingGoal(String id,
String matching_element,
Boolean unique_solution) |
MatchingGoal(String id,
String matching_element,
String supergoal,
Boolean unique_solution) |
Modifier and Type | Method and Description |
---|---|
void |
add_correspondence_by(String correspondence_by) |
void |
add_matching_element(String matching_element) |
List<String> |
get_correspondence_by() |
List<String> |
get_matching_elements() |
Boolean |
get_multiple_matching_allowed() |
String |
get_target() |
void |
set_correspondences_by(List<String> correspondences_by) |
void |
set_matching_elements(List<String> matching_elements) |
void |
set_multiple_matching_allowed(Boolean multiple_matching_allowed) |
void |
set_target(String target) |
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 MatchingGoal(String id)
id
- public MatchingGoal(String id, String matching_element)
id
- matching_element
- public MatchingGoal(String id, String matching_element, Boolean unique_solution)
id
- matching_element
- unique_solution
- public String get_target()
public void set_target(String target)
target
- the target to setpublic void set_matching_elements(List<String> matching_elements)
matching_elements
- the matching_elements to setpublic void add_matching_element(String matching_element)
matching_element
- the matching_element to addpublic void set_correspondences_by(List<String> correspondences_by)
correspondences_by
- the correspondences to setpublic void add_correspondence_by(String correspondence_by)
correspondence_by
- the correspondence_by to setpublic Boolean get_multiple_matching_allowed()
public void set_multiple_matching_allowed(Boolean multiple_matching_allowed)
multiple_matching_allowed
- the multiple_matching_allowed 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