Skip to main content

device_rows

Function device_rows 

Source
pub fn device_rows(
    network: &Map<String, Value>,
) -> Result<Vec<DeviceRow<'_>>, Error>
Expand description

Enumerate simple dispatchable devices with their generator/load row indices. Row assignment lives here and nowhere else: a consumer that addresses payload rows by index (the operating point extractor in powerio-pkg) must enumerate devices through this function so its indices match the parsed network, uid or no uid.