Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement of State / Mode objects #426

Open
vik378 opened this issue May 23, 2024 · 0 comments
Open

Enhancement of State / Mode objects #426

vik378 opened this issue May 23, 2024 · 0 comments

Comments

@vik378
Copy link
Member

vik378 commented May 23, 2024

In Capella itself you can do a lot more with states and modes at the moment, lets fix that. For State / Mode objects we should add the following attributes:

  • .related_transitions - list of transitions that may lead to and from this state
  • .incoming_transitions - list of transitions that lead to this state
  • .outgoing_transitions - list of transitions that lead out of this state
  • .owner - a structural element (Entity, Component, Class, etc) that the parent state machine belongs to
  • .related_states - list of states that the owner may transition to or from this state
  • .source_states - list of states from which the system could transition to this state
  • .target_states - list of states to which the system could transition from this state
  • .entry - list of activities or functions that are performed on entry into state
  • .do_activity - list of activities or functions that may be performed while in state
  • .exit - list of activities or functions that are performed before leaving the state

we should also rename .states to .states_and_modes and add a separate .states that isnt mixed with modes

Adding the above should also enable introduction of a meaningful context diagram for a state.

chgio added a commit to chgio/py-capellambse that referenced this issue Sep 29, 2024
Register and declare ReferenceSearchingAccessors for StateTransitions
leading into and out of a State

Refs: DSD-DBS#426
chgio added a commit to chgio/py-capellambse that referenced this issue Sep 29, 2024
Add 2 test cases checking correct access of incoming and outgoing
StateTransitions from a State

Refs: DSD-DBS#426
chgio added a commit to chgio/py-capellambse that referenced this issue Sep 29, 2024
Extend accessors:
- incoming_transitions to all *State classes except:
  - InitialPseudoState
- outgoing_transitions to all *State classes except:
  - FinalState
  - TerminatePseudoState

Refs: DSD-DBS#426
chgio added a commit to chgio/py-capellambse that referenced this issue Sep 29, 2024
Wuestengecko pushed a commit to chgio/py-capellambse that referenced this issue Sep 30, 2024
Register and declare ReferenceSearchingAccessors for StateTransitions
leading into and out of a State:

- incoming_transitions to all *State classes except InitialPseudoState
- outgoing_transitions to all *State classes except FinalState and
  TerminatePseudoState

Refs: DSD-DBS#426
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant