csc.update.InterfaceAttribute¶
- class csc.update.InterfaceAttribute¶
InterfaceAttribute represents a group attribute. Can be potentially connected to any attribute.
Interface attribute can be: 1. An attribute of input/output node inside the group 2. An attribute of the group node itself, in the parent group layout (outside the group) We will call this attributes “paired”. For each attribute there is a paired one. They have the same attribute ids and names. Sometimes it’s easier to think of them as of one attribute that has 2 sides. But in terms of this class this are two separate objects.
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)connect
(self, attribute)attribute: NodeAttribute
connected_attributes
(self)-> NodeAttribute[]
connected_leaves
(self[, get_only_first])-> NodeAttribute[]
connected_leaves_in_undirected_graph
(self)direction
(self)-> csc.DirectionValue
disconnect
(*args, **kwargs)Overloaded function.
group_attribute_id
(self)get the group attribute id
id
(self)-> AttributeId
is_active
(self)name
(self)node
(self)-> Node
other_side
(self)Get the paired attribute (e.g.
set_name
(self, name)Rename the attribute
- __annotations__ = {}¶
- __init__(*args, **kwargs)¶
- __module__ = 'csc.update'¶
- group_attribute_id(self: csc.update.InterfaceAttribute) csc.update.GroupAttributeId ¶
get the group attribute id
- other_side(self: csc.update.InterfaceAttribute) csc.update.InterfaceAttribute ¶
Get the paired attribute (e.g. the other side of the attribute)
- set_name(self: csc.update.InterfaceAttribute, name: str) None ¶
Rename the attribute