A GvPort is a port of a GvNode-object. Please note, a GvPort object cannot be alive without its owner. Use GvNode.AddPort() to create a port.
Connects a port with another.
Note
Remember, the nodes of the ports have to be in the same GvNodeMaster, otherwise the connection fails.
Parameters: | port (GvPort) – The port to connect to. |
---|---|
Return type: | bool |
Returns: | True on succeeded connection, otherwise False. |
Removes the connections of this port.
Return type: | bool |
---|---|
Returns: | True if the connection was removed, otherwise False. |
Get the number of connections, including both the incoming connection and outgoing connections.
Return type: | int |
---|---|
Returns: | Number of connections. |
Check if there’s an incoming connection.
Return type: | bool |
---|---|
Returns: | True if there’s an incoming connection to the port, otherwise False. |
Returns the port where the port is linked with.
Return type: | list of type GvPort |
---|---|
Param: | A list with all destinations. |
Gets the name of this port.
Parameters: | node (GvNode) – The node the port belongs to |
---|---|
Return type: | str |
Returns: | Port name. |
Sets the name of this port.
Parameters: | name (str) – Port name. |
---|
Gets the IO mode for this port.
Return type: | int | ||||||
---|---|---|---|---|---|---|---|
Returns: | IO mode:
|
Gets the main ID of the port.
Return type: | int |
---|---|
Returns: | Main ID. |
Sets the main ID of the port.
Parameters: | id (int) – New main ID. |
---|
Gets the sub ID of the port.
Return type: | int |
---|---|
Returns: | Sub ID. |
Gets the user ID of the port.
Return type: | int |
---|---|
Returns: | Sub ID. |
Gets the value type of the port.
Return type: | int |
---|---|
Returns: | The value type. |
Set the visibility of the port.
Parameters: | v (bool) – False for an invisible port. |
---|
Checks if this port is hidden or visible.
Return type: | bool |
---|---|
Returns: | True if visible, otherwise False. |