/**
 * @license
 * Copyright 2022-2024 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import {
  ClusterElement as Cluster,
  AttributeElement as Attribute,
  FieldElement as Field
} from "../../elements/index.js";
const PowerSourceConfiguration = Cluster({
  name: "PowerSourceConfiguration",
  id: 46,
  classification: "node",
  pics: "PSCFG",
  details: "This cluster is used to describe the configuration and capabilities of a Device\u2019s power system. It provides an ordering overview as well as linking to the one or more endpoints each supporting a Power Source cluster.",
  xref: { document: "core", section: "11.6" },
  children: [
    Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
    Attribute({
      name: "Sources",
      id: 0,
      type: "list",
      access: "R V",
      conformance: "M",
      constraint: "max 6",
      quality: "N",
      details: "This list shall contain the set of all power sources capable of participating in the power system of this Node. Each entry in the list shall be the endpoint number of an endpoint having a Power Source cluster, which corresponds to a physical power source. The endpoint number shall be unique within the list.\nThe order of power sources on a Node is defined by the Order attribute of its associated Power Source cluster provided on the endpoint. List entries shall be sorted in increasing order, that is, an entry with a lower order shall have a lower index than any entry with a higher order. Multiple entries may have the same order, there are no restrictions on their relative sorting.",
      xref: { document: "core", section: "11.6.4.1" },
      children: [Field({ name: "entry", type: "endpoint-no" })]
    })
  ]
});
MatterDefinition.children.push(PowerSourceConfiguration);
export {
  PowerSourceConfiguration
};
//# sourceMappingURL=PowerSourceConfiguration.js.map
