cartagen.BuildingSizeConstraint#
- class BuildingSizeConstraint(agent, importance, min_area=0.0, area_threshold=70.0)#
Agent onstraint to handle building size.
This constraint asks for the building elimination if its area is too small for the wanted scale.
- Parameters:
agent (
BuildingAgent) – The building agent object to apply the constraint to.importance (
int) – The Importance of the constraint.min_area (
float, optional) – Area in square meters below which the building will be enlarge to this same value.elimination_area_threshold (
float, optional) – Area in square meters below which the building will be eliminated.
See also
run_agentsExecute the AGENT process.
BuildingGranularityConstraintAgent constraint to handle building granularity.
BuildingSquarenessConstraintAgent constraint to handle building squareness.