Associating actions to states and transitions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start at the types that expose SetAction(IAction action) for states and transitions, and read the IAction implementation used for simple actions. Add System.Action<...> overloads there that wrap the delegate in that simple implementation, keeping the existing IAction method working. Confirm the overloads compile for both states and transitions and add cases to the existing test project; done when lambdas can be passed to both.
Written by the indexing model from the issue text.
Description
How it works
To define an action, we have to set an implementation of IAction and then call the method SetAction(IAction action).
The problem
Also this way of adding actions works well with complex actions or programs, it is a heavy syntax for defining simple or test actions, like actions just displaying a message.
The solution
Add methods SetAction(System.Action<...>) for both states and transitions to allow defining new actions with a lamba and lighter syntax.
- Dominant language
- C#
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 1m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Natvs/Nt.Automaton
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Natvs/Nt.Automaton#17 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Natvs/Nt.Automaton#10 ·
-
enhancement good first issue
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Natvs/Nt.Automaton#27 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Natvs/Nt.Automaton#13 ·
-
Pop multiple statesOpenenhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Natvs/Nt.Automaton#11 ·
All issues in Natvs/Nt.Automaton
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
a-corriger documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
DigiBanks99/menlo#640 ·
Maintainers usually reply within 1 day
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
Maintainers usually reply within 3 days
-
area / templates
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bitfoundation/bitplatform#15109 ·
Maintainers usually reply within 1 day