public class Goal extends Object
Constructor and Description |
---|
Goal(String id) |
Goal(String id,
String t) |
Goal(String id,
String t,
Boolean unique_solution) |
Goal(String id,
String t,
String supergoal,
Boolean unique_solution) |
Modifier and Type | Method and Description |
---|---|
Long |
get_appears() |
Boolean |
get_auto_eval() |
String |
get_id() |
String |
get_instructions() |
String |
get_needed_action() |
String |
get_supergoal() |
String |
get_t() |
Long |
get_time_limit() |
Boolean |
get_unique_solution() |
void |
set_appears(Long appears) |
void |
set_auto_eval(Boolean auto_eval) |
void |
set_id(String id) |
void |
set_instructions(String instructions) |
void |
set_needed_action(String needed_action) |
void |
set_supergoal(String supergoal) |
void |
set_t(String t) |
void |
set_time_limit(Long time_limit) |
void |
set_unique_solution(Boolean unique_solution) |
JSONObject |
to_json()
The Goal is converted to JSON format
|
InfantiumResponse |
validate_goal(List<String> elements_list) |
public Goal(String id)
id
- public Goal(String id, String t, Boolean unique_solution)
id
- t
- unique_solution
- public String get_id()
public void set_id(String id)
id
- the id to setpublic String get_t()
public void set_t(String t)
t
- the type to setpublic String get_supergoal()
public void set_supergoal(String supergoal)
supergoal
- the supergoal to setpublic Boolean get_unique_solution()
public void set_unique_solution(Boolean unique_solution)
unique_solution
- the unique_solution to setpublic Long get_time_limit()
public void set_time_limit(Long time_limit)
time_limit
- the time_limit to setpublic String get_needed_action()
public void set_needed_action(String needed_action)
needed_action
- the needed_action to setpublic String get_instructions()
public void set_instructions(String instructions)
instructions
- the instructions to setpublic Boolean get_auto_eval()
public void set_auto_eval(Boolean auto_eval)
auto_eval
- the auto_eval to setpublic Long get_appears()
public void set_appears(Long appears)
public JSONObject to_json() throws JSONException
JSONException