-- Copyright (c) 2025 Huawei Technologies Co., Ltd.
-- openUBMC is licensed under Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
-- EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
-- MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
-- See the Mulan PSL v2 for more details.

local c_object = require 'mc.orm.object'

local efficiency_curve = c_object('PowerOutputEfficiencyCurve')

function efficiency_curve:ctor()
end

function efficiency_curve:set(...)
    return self.PowerSupply.methods.SetReg(...)
end

function efficiency_curve:get(...)
    return self.PowerSupply.methods.GetReg(...)
end

function efficiency_curve.create_mdb_object()
end

function efficiency_curve:before_add_object(...)
    self.Position = self.position
end

function efficiency_curve:init()
    self:connect_signal(self.on_add_object_complete, function()
    end)
    efficiency_curve.super.init(self)
end

return efficiency_curve