NPortComponentModel#
- class pyedb.grpc.database.definition.component_model.NPortComponentModel(core)#
Class managing
NPortComponentModel
Overview#
Create an N-Port component model. |
|
Find an N-Port component model by IO count in a given component definition. |
|
Find an N-Port component model by name in a given component definition. |
Check if the N-Port component model is null. |
|
Get the name of the N-Port component model. |
|
Get the reference file of the N-Port component model. |
Import detail#
from pyedb.grpc.database.definition.component_model import NPortComponentModel
Property detail#
- property NPortComponentModel.is_null#
Check if the N-Port component model is null.
- Returns:
- bool
True if the N-Port component model is null, False otherwise.
Attribute detail#
- NPortComponentModel.core#
Method detail#
- classmethod NPortComponentModel.create(name: str) NPortComponentModel#
Create an N-Port component model.
- Parameters:
- name
str Name of the N-Port component model.
- name
- Returns:
NPortComponentModelThe created N-Port component model object.
- classmethod NPortComponentModel.find_by_id(component_definition, id: int) None | NPortComponentModel#
Find an N-Port component model by IO count in a given component definition.
- Parameters:
- component_definition
ComponentDef Component definition to search for the N-Port component model.
- id
int IO count of the N-Port component model.
- Returns
- ——-
- NPortComponentModel
N-Port component model that is found,
Noneotherwise.
- component_definition
- classmethod NPortComponentModel.find_by_name(component_definition, name: str) None | NPortComponentModel#
Find an N-Port component model by name in a given component definition.
- Parameters:
- component_definition
ComponentDef Component definition to search for the N-Port component model.
- name
str Name of the N-Port component model.
- component_definition
- Returns:
NPortComponentModelN-Port component model that is found,
Noneotherwise.