Project class
Project class
Definition for the Project class.
id
character
identifier.
site_ids
character
vector
site_descriptions
character
vector
feature_ids
character
vector
feature_html_ids
character
vector
feature_descriptions
character
vector
action_ids
character
vector
action_colors
character
vector of colors for each action.
action_descriptions
character
vector
site_data
data.frame
object.
feature_data
data.frame
object.
feasibility_data
data.frame
object.
site_geometry
sf::st_sf()
object.
parameters
list
of parameters.
settings
list
of Parameter
objects.
consequence_data
list
of data.frame
objects.
site_cost_headers
character
vector with names.
site_status_header
character
value.
action_feasibility_headers
character
vector with names.
feature_goal_header
character
value.
feature_weight_header
character
value.
consequence_action_headers
character
named vector.
consequence_feature_headers
character
named vector.
new()
Create a Project object.
Project$new(
id,
site_ids,
site_descriptions,
site_geometry,
feature_ids,
feature_descriptions,
action_ids,
action_descriptions,
site_data,
feature_data,
feasibility_data,
consequence_data,
parameters
)
id
character
value.
site_ids
character
vector
site_descriptions
character
vector
site_geometry
sf::st_sf()
object.
feature_ids
character
vector
feature_descriptions
character
vector
action_ids
character
vector
action_descriptions
character
vector
site_data
data.frame
object.
feature_data
data.frame
object.
feasibility_data
data.frame
object.
consequence_data
list
of data.frame
objects.
parameters
list
of parameters.
A new Project object.
new()
Create a Project object.
Project$new(
id,
site_ids,
site_descriptions,
site_geometry,
feature_ids,
feature_descriptions,
action_ids,
action_descriptions,
site_data,
feature_data,
feasibility_data,
consequence_data,
parameters
)
id
character
value.
site_ids
character
vector
site_descriptions
character
vector
site_geometry
sf::st_sf()
object.
feature_ids
character
vector
feature_descriptions
character
vector
action_ids
character
vector
action_descriptions
character
vector
site_data
data.frame
object.
feature_data
data.frame
object.
feasibility_data
data.frame
object.
consequence_data
list
of data.frame
objects.
parameters
list
of parameters.
A new Project object.
print()
Print the object.
Project$print(...)
...
not used.
print()
Print the object.
Project$print(...)
...
not used.
repr()
Generate a character
summarizing the representation of the object.
Project$repr()
character
value.
repr()
Generate a character
summarizing the representation of the object.
Project$repr()
character
value.
get_site_ids()
Get site identifiers.
Project$get_site_ids()
character
vector.
get_site_ids()
Get site identifiers.
Project$get_site_ids()
character
vector.
get_feature_ids()
Get feature identifiers.
Project$get_feature_ids()
character
vector.
get_feature_ids()
Get feature identifiers.
Project$get_feature_ids()
character
vector.
get_feature_ids_from_html_id()
Get feature HTML identifiers.
Project$get_feature_ids_from_html_id(feature_html_id)
feature_html_id
character
vector of feature identifiers.
character
vector.
get_feature_ids_from_html_id()
Get feature HTML identifiers.
Project$get_feature_ids_from_html_id(feature_html_id)
feature_html_id
character
vector of feature identifiers.
character
vector.
get_action_ids()
Get action identifiers.
Project$get_action_ids()
character
vector.
get_action_ids()
Get action identifiers.
Project$get_action_ids()
character
vector.
get_feature_goal()
Get feature goal.
Project$get_feature_goal(feature_id)
feature_id
character
identifier for feature
numeric
value.
get_feature_goal()
Get feature goal.
Project$get_feature_goal(feature_id)
feature_id
character
identifier for feature
numeric
value.
get_feature_weight()
Get feature weight.
Project$get_feature_weight(feature_id)
feature_id
character
identifier for feature
numeric
value.
get_feature_weight()
Get feature weight.
Project$get_feature_weight(feature_id)
feature_id
character
identifier for feature
numeric
value.
get_site_statuses()
Get colors for actions.
Project$get_site_statuses()
action_id
character
identifier for action.
character
vector.
get_site_statuses()
Get colors for actions.
Project$get_site_statuses()
action_id
character
identifier for action.
character
vector.
get_action_costs()
Get cost data for implementing an action within each site.
Project$get_action_costs(action_id)
action_id
character
identifier for action.
numeric
vector.
get_action_costs()
Get cost data for implementing an action within each site.
Project$get_action_costs(action_id)
action_id
character
identifier for action.
numeric
vector.
get_action_feasibility()
Get feasibility data for implementing an action within each site.
Project$get_action_feasibility(action_id)
action_id
character
identifier for action.
logical
vector.
get_action_feasibility()
Get feasibility data for implementing an action within each site.
Project$get_action_feasibility(action_id)
action_id
character
identifier for action.
logical
vector.
get_consequences_for_feature()
Get consequence data for features.
Project$get_consequences_for_feature(action_id, feature_id)
action_id
character
identifier for action.
feature_id
character
identifier for feature.
numeric
vector.
get_consequences_for_feature()
Get consequence data for features.
Project$get_consequences_for_feature(action_id, feature_id)
action_id
character
identifier for action.
feature_id
character
identifier for feature.
numeric
vector.
get_min_budget()
Get the cost of the cheapest solution.
Project$get_min_budget()
numeric
value.
get_min_budget()
Get the cost of the cheapest solution.
Project$get_min_budget()
numeric
value.
get_max_budget()
Get the cost of the most expensive solution.
Project$get_max_budget()
numeric
value.
get_max_budget()
Get the cost of the most expensive solution.
Project$get_max_budget()
numeric
value.
get_max_feature_consequence()
Get the highest amount for each feature.
Project$get_max_feature_consequence()
data.frame
containing a feature_id
and amount
columns.
get_max_feature_consequence()
Get the highest amount for each feature.
Project$get_max_feature_consequence()
data.frame
containing a feature_id
and amount
columns.
get_current_feature_consequence()
Get the current expected amount for each feature.
Project$get_current_feature_consequence()
data.frame
containing a feature_id
and amount
columns.
get_current_feature_consequence()
Get the current expected amount for each feature.
Project$get_current_feature_consequence()
data.frame
containing a feature_id
and amount
columns.
get_map_layers()
Get layer names for rendering data on map.
Project$get_map_layers()
character
vector of layer names.
get_map_layers()
Get layer names for rendering data on map.
Project$get_map_layers()
character
vector of layer names.
get_pu_data()
Get planning unit data for optimization.
Project$get_pu_data()
data.frame
object.
get_pu_data()
Get planning unit data for optimization.
Project$get_pu_data()
data.frame
object.
get_current_status_data()
Get status data for optimization.
Project$get_current_status_data()
data.frame
object.
get_current_status_data()
Get status data for optimization.
Project$get_current_status_data()
data.frame
object.
get_zone_data()
Get zone data for optimization.
Project$get_zone_data()
data.frame
object.
get_zone_data()
Get zone data for optimization.
Project$get_zone_data()
data.frame
object.
get_goal_data()
Get goal data for optimization.
Project$get_goal_data()
data.frame
object.
get_goal_data()
Get goal data for optimization.
Project$get_goal_data()
data.frame
object.
get_weight_data()
Get weight data for optimization.
Project$get_weight_data()
data.frame
object.
get_weight_data()
Get weight data for optimization.
Project$get_weight_data()
data.frame
object.
get_locked_data()
Get locked data for optimization.
Project$get_locked_data()
data.frame
object.
get_locked_data()
Get locked data for optimization.
Project$get_locked_data()
data.frame
object.
get_bbox()
Get the bounding box.
Project$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.
Project$get_bbox(expand = FALSE)
expand
FALSE
should the bounding box be expanded by 10%?
list
object with "xmin"
, "xmax"
, "ymin"
, and "ymax"
elements.
get_solution_settings_data()
Get data for rendering the solution settings widget.
Project$get_solution_settings_data()
list
object.
get_solution_settings_data()
Get data for rendering the solution settings widget.
Project$get_solution_settings_data()
list
object.
get_goals_settings_data()
Get data for rendering widget to specify goals.
Project$get_goals_settings_data()
list
object.
get_goals_settings_data()
Get data for rendering widget to specify goals.
Project$get_goals_settings_data()
list
object.
get_weights_settings_data()
Get data for rendering widget to specify weights.
Project$get_weights_settings_data()
list
object.
get_weights_settings_data()
Get data for rendering widget to specify weights.
Project$get_weights_settings_data()
list
object.
set_feature_goal()
Set goal for a feature.
Project$set_feature_goal(feature_id, value)
feature_id
character
value containing the feature identifier.
value
numeric
value containing the new goal.
set_feature_goal()
Set goal for a feature.
Project$set_feature_goal(feature_id, value)
feature_id
character
value containing the feature identifier.
value
numeric
value containing the new goal.
set_feature_weight()
Set weight for a feature.
Project$set_feature_weight(feature_id, value)
feature_id
character
value containing the feature identifier.
value
numeric
value containing the new weight.
set_feature_weight()
Set weight for a feature.
Project$set_feature_weight(feature_id, value)
feature_id
character
value containing the feature identifier.
value
numeric
value containing the new weight.
set_site_data()
Set site data.
Project$set_site_data(x)
x
data.frame
containing new data.
set_site_data()
Set site data.
Project$set_site_data(x)
x
data.frame
containing new data.
set_feature_data()
Set feature data.
Project$set_feature_data(x)
x
data.frame
containing new data.
set_feature_data()
Set feature data.
Project$set_feature_data(x)
x
data.frame
containing new data.
set_feasibility_data()
Set feasibility data.
Project$set_feasibility_data(x)
x
data.frame
containing new data.
set_feasibility_data()
Set feasibility data.
Project$set_feasibility_data(x)
x
data.frame
containing new data.
set_consequence_data()
Set consequence data.
Project$set_consequence_data(x, action_id)
x
data.frame
containing new data.
action_id
character
identifier for action.
set_consequence_data()
Set consequence data.
Project$set_consequence_data(x, action_id)
x
data.frame
containing new data.
action_id
character
identifier for action.
render_on_map()
Render on map.
Project$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.
Project$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_site_data()
Render site data.
Project$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.
Project$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.
Project$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.
Project$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.
Project$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.
Project$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.
Project$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.
Project$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.
write()
Write the data to disk.
Project$write(workbook_path, geometry_path)
workbook_path
character
file path.
geometry_path
character
file path.
write()
Write the data to disk.
Project$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.
Project$clone(deep = FALSE)
deep
Whether to make a deep clone.
clone()
The objects of this class are cloneable with this method.
Project$clone(deep = FALSE)
deep
Whether to make a deep clone.