Skip to contents

generate_furniture() assigns room types and generates a tabular dataset describing the inventory of furniture and elementary components for each room.

Usage

generate_furniture(model, output_path)

Arguments

model

list, spatial coordinate model generated by generate_model_coordinate(). Must contain room named elements.

output_path

character, unused argument kept for signature compatibility.

Value

A data.frame containing the following columns:

  • component_elementary: character, identifier of the item type.

  • room_name: character, target room identifier.

  • wall_name: logical/character, associated wall (NA if unassigned).

  • relative_height: numeric, elevation from floor level (cm).

  • dilapidation: numeric, wear/aging factor.

  • quantity: integer, number of units.

  • v_min: numeric, minimum unit cost/volume threshold.

  • v_max: numeric, maximum unit cost/volume threshold.

  • details: character, descriptive label.

Details

The function extracts room names from model (ignoring "exterior", "door", and "window") and assigns types sequentially:

  • 1st room: kitchen

  • 2nd room: bathroom

  • 3rd room: livingroom

  • Remaining rooms: bedroom

Each room type receives a predefined set of furniture items, sockets, and appliances with characteristics such as cost range (v_min, v_max), elevation (relative_height), and quantity.