示例#1
0
 def __init__(self, name, node):
     """
     name: Name of this channel
     node: Node that this channel belongs to
     """
     self.__name = name
     self.__node = node
     self.__id = generate_id()
     self.__value = ChannelValue()
     self.__in_channel = None
     self.__out_channels = OrderedDict()
     self.__in_value = None
示例#2
0
 def __init__(self, name):
     self.__name = name
     self.__id = generate_id()
     self.__channels = OrderedDict()