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
)
id
character
identifier.
name
character
value.
project
character
identifier.
settings
list
of Parameter objects.
summary_results
data.frame
object.
site_results
data.frame
object.
feature_results
data.frame
object.
A new Solution object.
new()
Create a Solution object.
Solution$new(
id,
name,
project,
settings,
summary_results,
site_results,
feature_results
)
id
character
identifier.
name
character
value.
project
character
identifier.
settings
list
of Parameter objects.
summary_results
data.frame
object.
site_results
data.frame
object.
feature_results
data.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)
expand
FALSE
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)
expand
FALSE
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")
map
leaflet::leaflet()
object.
data
character
name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()
).
group
character
group name. Defaults to "sites"
.
leaflet::leaflet()
map.
render_on_map()
Render on map.
Solution$render_on_map(map, data = "location", group = "sites")
map
leaflet::leaflet()
object.
data
character
name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()
).
group
character
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%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/numeric
CSS measurement value.
Default to "100%"
.
rhandsontable::rhandsontable object.
render_site_data()
Render site data.
Solution$render_site_data(height = "100%", width = "100%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/numeric
CSS measurement value.
Default to "100%"
.
rhandsontable::rhandsontable object.
render_feature_data()
Render feature data.
Solution$render_feature_data(height = "100%", width = "100%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/numeric
CSS measurement value.
Default to "100%"
.
rhandsontable::rhandsontable object.
render_feature_data()
Render feature data.
Solution$render_feature_data(height = "100%", width = "100%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/numeric
CSS measurement value.
Default to "100%"
.
rhandsontable::rhandsontable object.
render_feasibility_data()
Render feasibility data.
Solution$render_feasibility_data(height = "100%", width = "100%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/numeric
CSS measurement value.
Default to "100%"
.
rhandsontable::rhandsontable object.
render_feasibility_data()
Render feasibility data.
Solution$render_feasibility_data(height = "100%", width = "100%")
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/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_id
character
identifier for action.
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/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_id
character
identifier for action.
height
character
/numeric
CSS measurement value.
Default to "100%"
.
width
character
/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_path
character
file path.
geometry_path
character
file path.
write()
Write the data to disk.
Solution$write(workbook_path, geometry_path)
workbook_path
character
file path.
geometry_path
character
file path.
clone()
The objects of this class are cloneable with this method.
Solution$clone(deep = FALSE)
deep
Whether to make a deep clone.
clone()
The objects of this class are cloneable with this method.
Solution$clone(deep = FALSE)
deep
Whether to make a deep clone.