gen_riscv.core.service.isubprocessor module

Module

isubprocessor.py

Copyright

Copyright (C) 2026 Vladimir Roncevic <elektron.ronca@gmail.com> gen_riscv is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gen_riscv is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Info

Defines the abstract interface for sub-process execution. Provides an interface for the sub-process factory.

class gen_riscv.core.service.isubprocessor.ISubProcessor(*args, **kwargs)[source]

Bases: Protocol, Generic

Defines the abstract interface for sub-process execution. Provides an interface for the sub-process factory.

It defines:

methods:
run - Runs a sub-process.
is_initialized - Checks if the subprocessor is initialized.
_abc_impl = <_abc._abc_data object>
_is_protocol = True
_is_runtime_protocol = True
is_initialized() bool[source]

Checks if the service is initialized.

Returns:

True if the subprocessor is initialized, False otherwise.

run(*, params: SubProcessorParamsType) SubProcessorResultType[source]

Runs a sub-process.

Parameters:

params – The parameters for the sub-process execution.

Returns:

The result of the execution.