This is a feature because it adds running computation when dataset is empty
What does this do?
The updates enable state-machine transitions from the receivingAlgorithm state to the running state if no dataset is provided.
Which issue(s) does this PR fix/relate to?
Resolves #168
Have you included tests for your changes?
Yes, I have included tests for my changes.
Did you document any new/modified feature?
No need for documentation since this is an expected scenario
Notes
Refactor
Updated state machine transitions to improve control flow.
Bug Fixes
Changed types from int to uint8 for state and event to prevent possible overflows.
Tests
Modified tests to reflect new state machine transitions and event handling.
sequenceDiagram
participant User
participant Agent
participant StateMachine
User->>Agent: Provide Algorithm
Note right of Agent: Checking dataset length
alt Dataset length is 0
Agent->>StateMachine: Send algoReceivedNoData event
StateMachine->>StateMachine: Transition to running state
else Dataset length > 0
Agent->>StateMachine: Send algorithmReceived event
StateMachine->>StateMachine: Transition to receivingAlgorithm state
end
StateMachine->>User: Acknowledge state transition
What type of PR is this?
This is a feature because it adds running computation when dataset is empty
What does this do?
The updates enable state-machine transitions from the
receivingAlgorithm
state to therunning
state if no dataset is provided.Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Yes, I have included tests for my changes.
Did you document any new/modified feature?
No need for documentation since this is an expected scenario
Notes
Refactor
Bug Fixes
int
touint8
for state and event to prevent possible overflows.Tests