Solution class
Solution class
Definition for the Solution class.
new()Create a Solution object.
Solution$new(
id,
name,
project,
settings,
summary_results,
site_results,
feature_results
)idcharacter identifier.
namecharacter value.
projectcharacter identifier.
settingslist of Parameter objects.
summary_resultsdata.frame object.
site_resultsdata.frame object.
feature_resultsdata.frame object.
A new Solution object.
new()Create a Solution object.
Solution$new(
id,
name,
project,
settings,
summary_results,
site_results,
feature_results
)idcharacter identifier.
namecharacter value.
projectcharacter identifier.
settingslist of Parameter objects.
summary_resultsdata.frame object.
site_resultsdata.frame object.
feature_resultsdata.frame object.
A new Solution object.
print()Print the object.
Solution$print(...)...not used.
print()Print the object.
Solution$print(...)...not used.
repr()Generate a character summarizing the representation of the object.
Solution$repr()character value.
repr()Generate a character summarizing the representation of the object.
Solution$repr()character value.
get_site_ids()Get site identifiers.
Solution$get_site_ids()character vector.
get_site_ids()Get site identifiers.
Solution$get_site_ids()character vector.
get_feature_ids()Get feature identifiers.
Solution$get_feature_ids()character vector.
get_feature_ids()Get feature identifiers.
Solution$get_feature_ids()character vector.
get_action_ids()Get action identifiers.
Solution$get_action_ids()character vector.
get_action_ids()Get action identifiers.
Solution$get_action_ids()character vector.
get_map_layers()Get layer names for rendering data on map
Solution$get_map_layers()get_map_layers()Get layer names for rendering data on map
Solution$get_map_layers()get_bbox()Get the bounding box.
Solution$get_bbox(expand = FALSE)expandFALSE should the bounding box be expanded by 10%?
list object with "xmin", "xmax", "ymin", and "ymax"
elements.
get_bbox()Get the bounding box.
Solution$get_bbox(expand = FALSE)expandFALSE should the bounding box be expanded by 10%?
list object with "xmin", "xmax", "ymin", and "ymax"
elements.
render_on_map()Render on map.
Solution$render_on_map(map, data = "location", group = "sites")mapleaflet::leaflet() object.
datacharacter name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()).
groupcharacter group name. Defaults to "sites".
leaflet::leaflet() map.
render_on_map()Render on map.
Solution$render_on_map(map, data = "location", group = "sites")mapleaflet::leaflet() object.
datacharacter name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()).
groupcharacter group name. Defaults to "sites".
leaflet::leaflet() map.
get_solution_results_data()Get data for rendering widget to display results.
Solution$get_solution_results_data()get_solution_results_data()Get data for rendering widget to display results.
Solution$get_solution_results_data()render_site_data()Render site data.
Solution$render_site_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_site_data()Render site data.
Solution$render_site_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feature_data()Render feature data.
Solution$render_feature_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feature_data()Render feature data.
Solution$render_feature_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feasibility_data()Render feasibility data.
Solution$render_feasibility_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feasibility_data()Render feasibility data.
Solution$render_feasibility_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_consequence_data()Render consequence data.
Solution$render_consequence_data(action_id, height = "100%", width = "100%")action_idcharacter identifier for action.
heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_consequence_data()Render consequence data.
Solution$render_consequence_data(action_id, height = "100%", width = "100%")action_idcharacter identifier for action.
heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_summary_results()Display summary results data.
Solution$render_summary_results()DT::datatable() object.
render_summary_results()Display summary results data.
Solution$render_summary_results()DT::datatable() object.
render_site_results()Display site results data.
Solution$render_site_results()DT::datatable() object.
render_site_results()Display site results data.
Solution$render_site_results()DT::datatable() object.
render_feature_results()Display feature results data.
Solution$render_feature_results()DT::datatable() object.
render_feature_results()Display feature results data.
Solution$render_feature_results()DT::datatable() object.
write()Write the data to disk.
Solution$write(workbook_path, geometry_path)workbook_pathcharacter file path.
geometry_pathcharacter file path.
write()Write the data to disk.
Solution$write(workbook_path, geometry_path)workbook_pathcharacter file path.
geometry_pathcharacter file path.
clone()The objects of this class are cloneable with this method.
Solution$clone(deep = FALSE)deepWhether to make a deep clone.
clone()The objects of this class are cloneable with this method.
Solution$clone(deep = FALSE)deepWhether to make a deep clone.