pyenergyplus——state.py

本文档介绍了pyenergyplus库中用于管理EnergyPlus API状态的class state.py。该类允许创建、重置和释放状态对象,这些对象在与EnergyPlus交互时作为回调的参数。状态对象不应被客户端代码直接修改,以免影响工作流程。
摘要由CSDN通过智能技术生成

一、class注释
        This API class enables a client to create and manage state instances for using EnergyPlus API methods. Nearly all EnergyPlus API methods require a state object to be passed in, and when callbacks are made, the current state is passed as the only argument. This allows client code to close the loop and pass the current state when making API calls inside callbacks.

        这个API类允许客户端创建和管理使用EnergyPlus API方法的状态实例。几乎所有EnergyPlus API方法都需要传入一个状态对象,并且在进行回调时,将当前状态作为唯一的参数传递。这允许客户端代码在回调内部进行API调用时关闭循环并传递当前状态。

        The state object is at the heart of accessing EnergyPlus via API, however, the client code should simply be a courier of this object, and never attempt to manipulate the object.  State manipulation occurs inside EnergyPlus, and attempting to modify it manually will likely not end well for the workflow.
        This class allows a client to create a new state, reset it, and free the object when finis

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值