Interface#
- class maize.core.interface.Interface(*args: Any, **kwargs: Any)[source]#
Bases:
Generic[T]Interface parent class, handles behaviour common to ports and parameters.
- datatype#
The datatype of the associated value. This may be a type from the
typinglibrary and thus not always usable for checks withisinstance()- Type:
Any
- __init__()#
Methods
__init__()build(name, parent)Instantiate an interface from the description.
check(value)Checks if a value is valid using type annotations.
Attributes
Provides a unique path to the interface.
Provides a serialized summary of the parameter
doc- build(name: str, parent: Component) _TInter[source]#
Instantiate an interface from the description.
- Parameters:
name – Name of the interface, will typically be the attribute name of the parent object
parent – Parent component instance
- Returns:
Copy of the current instance, with references to the name and the parent
- Return type:
_TInter