Port class
A port contains a resource and allows connecting processes. Example: [Left Process](output port) => (input port)[Right Process].
Attributes
name: str
Functions
__init__
Initialize self. See help(type(self)) for accurate signature.
name :
str
spec :
IOSpecDTO
get_default_resource_type
Return type :
Type
get_human_name
Return type :
str
get_resource
new_instance :
bool
- False
Return type :
Resource
get_resource_model
Return type :
Optional
get_resource_model_id
Return type :
Optional
reset
resource_type_is_compatible
Sets the resource of the port.
resource_type :
Type
Return type :
bool
set_resource_model
resource_model :
Optional
set_resource_model_id
Sets the resource of the port.
resource_id :
Optional
to_dto
Return type :
PortDTO
classname @classmethod
Returns the name of the class
slugify :
bool
- False
True to slugify the class name if True
snakefy :
bool
- False
True to snakefy the class name if True
replace_uppercase :
bool
- False
Replace upper cases by "-" if True
Return type :
str
full_classname @classmethod
Returns the full name of the class
slugify :
bool
- False
Slugify the returned class name if True
snakefy :
bool
- False
Snakefy the returned class name if True
Return type :
str
inheritors @classmethod
Get all the classes that inherit this class
Return type :
List
load_from_dto @classmethod
dto :
PortDTO
name :
str
Return type :
PortType