Skip to content
Snippets Groups Projects
Commit 10976d00 authored by angloth's avatar angloth
Browse files

Solve pull request comments and change so evaluate function in SFG uses the...

Solve pull request comments and change so evaluate function in SFG uses the same interface as the abstract evaluate function
parent d46c3ba6
No related branches found
No related tags found
1 merge request!11Resolve "Add AbstractPort" and "Change Port ID to Port Index"
Pipeline #10734 passed
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
...@@ -14,6 +14,7 @@ from b_asic.simulation import SimulationState, OperationState ...@@ -14,6 +14,7 @@ from b_asic.simulation import SimulationState, OperationState
from b_asic.utilities import breadth_first_search from b_asic.utilities import breadth_first_search
from b_asic.signal import Signal from b_asic.signal import Signal
class AbstractOperation(Operation, AbstractGraphComponent): class AbstractOperation(Operation, AbstractGraphComponent):
"""Generic abstract operation class which most implementations will derive from. """Generic abstract operation class which most implementations will derive from.
TODO: More info. TODO: More info.
......
...@@ -46,7 +46,7 @@ class SFG(AbstractOperation): ...@@ -46,7 +46,7 @@ class SFG(AbstractOperation):
# TODO: Traverse the graph between the inputs/outputs and add to self._operations. # TODO: Traverse the graph between the inputs/outputs and add to self._operations.
# TODO: Connect ports with signals with appropriate IDs. # TODO: Connect ports with signals with appropriate IDs.
def evaluate(self, inputs: list) -> list: def evaluate(self, *inputs) -> list:
return [] # TODO: Implement return [] # TODO: Implement
def _add_graph_component(self, graph_component: GraphComponent) -> GraphID: def _add_graph_component(self, graph_component: GraphComponent) -> GraphID:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment