python类c_int32()的实例源码

Circuit.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def enable(element):
    """This parameter allows to enable an element of the active circuit, the element must be specified by name. As a result, this parameter will deliver the string “Ok”."""
    return dsslib.CircuitS(ctypes.c_int32(2), element.encode('ascii')).decode('ascii')
Circuit.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def set_active_element(element):
    """This parameter allows to activate an element of the active circuit, the element must be specified by name. As a result, this parameter will deliver a string with the index of the active element."""
    return dsslib.CircuitS(ctypes.c_int32(3), element.encode('ascii')).decode('ascii')
Circuit.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 40 收藏 0 点赞 0 评论 0
def set_active_bus(bus):
    """This parameter allows to activate a bus of the active circuit, the bus must be specified by name. As a result, this parameter will deliver a string with the index of the active Bus."""
    return dsslib.CircuitS(ctypes.c_int32(4), bus.encode('ascii')).decode('ascii')
Circuit.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def set_active_class(class_name):
    """This parameter allows to activate a Class of the active circuit, the Class must be specified by name. As a result, this parameter will deliver a string with the index of the active Class."""
    return dsslib.CircuitS(ctypes.c_int32(5), class_name.encode('ascii')).decode('ascii')
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def num_terminals():
    """This parameter will deliver the number of terminals of the active DSS object."""
    return dsslib.CktElementI(ctypes.c_int32(0), ctypes.c_int32(0))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def num_phases():
    """"""
    return dsslib.CktElementI(ctypes.c_int32(2), ctypes.c_int32(0))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def open(terminal):
    """This parameter will open the specified terminal (Argument) of the active DSS object."""
    return dsslib.CktElementI(ctypes.c_int32(3), ctypes.c_int32(terminal))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def close(terminal):
    """This parameter will close the specified terminal (Argument) of the active DSS object."""
    return dsslib.CktElementI(ctypes.c_int32(4), ctypes.c_int32(terminal))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def is_open():
    """This parameter will return a 1 if any terminal of the active DSS object is open, otherwise, it will return a 0."""
    return dsslib.CktElementI(ctypes.c_int32(5), ctypes.c_int32(0))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def get_normal_amps():
    """This parameter will deliver the normal ampere rating for the active PDElement."""
    return dsslib.CktElementF(ctypes.c_int32(0), ctypes.c_double(0))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def get_emerg_amps():
    """This parameter will deliver the Emergency ampere rating for the active PDElement."""
    return dsslib.CktElementF(ctypes.c_int32(2), ctypes.c_double(0))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def set_emerg_amps(amps=0.0):
    """This parameter allows to fix the Emergency ampere rating for the active PDElement. The new value must be defined in the variable “Argument”."""
    return dsslib.CktElementF(ctypes.c_int32(3), ctypes.c_double(amps))
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def name():
    """This parameter delivers the full name of the active circuit element."""
    return dsslib.CktElementS(ctypes.c_int32(0), ''.encode('ascii')).decode('ascii')
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def guid():
    """This parameter delivers the unique name for the active circuit element."""
    return dsslib.CktElementS(ctypes.c_int32(3), ''.encode('ascii')).decode('ascii')
CktElement.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 35 收藏 0 点赞 0 评论 0
def energy_meter():
    """This parameter delivers the name of the EnergyMeter linked to the active circuit element."""
    return dsslib.CktElementS(ctypes.c_int32(4), ''.encode('ascii')).decode('ascii')
Bus.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def num_nodes():
    """This parameter returns the number of nodes of this bus."""
    return dsslib.BUSI(ctypes.c_int32(0), ctypes.c_int32(0))
Bus.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def coord_defined():
    """This parameter returns 1 if a coordinate has been defined for this bus; otherwise, it will return 0."""
    return dsslib.BUSI(ctypes.c_int32(2), ctypes.c_int32(0))
Bus.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def get_unique_node_number():
    """This parameter returns a unique node number at the active bus to avoid node collisions and adds it to the node list for the bus. The start number can be specified in the argument."""
    return dsslib.BUSI(ctypes.c_int32(3), ctypes.c_int32(0))
Bus.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def n_customers():
    """This parameter returns the total number of customers server down line from this bus."""
    return dsslib.BUSI(ctypes.c_int32(4), ctypes.c_int32(0))
Bus.py 文件源码 项目:linux-dss 作者: Muxelmann 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def section_id():
    """This parameter returns the integer ID of the feeder section in which this bus is located."""
    return dsslib.BUSI(ctypes.c_int32(5), ctypes.c_int32(0))


问题


面经


文章

微信
公众号

扫码关注公众号