I have a contract class. The contract is valid from January 1, 2010 - December 31, 2010.
It can be in Active or Passive state, depending on what date I request from the instance for it. ex. if I ask on July 4, 2010, it is in Active state, but if I ask on January 1, 2011, it is in Passive state.
Instances are created using embedding constructor dependencies, that is, they are either active or passive at creation time, null is not allowed as a parameter for the internal member of the state.
One start / created vertex is drawn in the state diagram of the UML machine. I have two arrows leading from the starting vertex, one of which leads to an Active state, and the other to a passive state.
Is this the correct representation of dependency injection in UML?
The question specifically relates to statemachine diagrams, where the first state after the initial state / vertex is defined outside the diagram.
The Jude / Ashtah tool allows such constructions, i.e. pulling a few lines from the inital vertices of the diagram, which leads me to think that this is the correct graphical UML syntax.
This is due to How is the statemachine model when the state is function dependent? who initiated the question of how to model DI in general, in UML.
source share