一、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