Skip to content

Commit

Permalink
Update state machine diagram in 0003 declarative services.md (#12)
Browse files Browse the repository at this point in the history
* State machine sequence diagrams

Added 6 state machine sequence diagrams. Signed-off-by: The MathWorks, Inc. <pelliott@mathworks.com>
  • Loading branch information
pelliott-mathworks authored Feb 25, 2021
1 parent 59ca3f8 commit 0466777
Show file tree
Hide file tree
Showing 20 changed files with 111 additions and 28 deletions.
82 changes: 54 additions & 28 deletions text/0003-declarative-services.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- Start Date: 2018-07-09
- Start Date: 2018-07-09
- RFC PR: https://github.com/CppMicroServices/rfcs/pull/1
- CppMicroServices Issue: https://github.com/CppMicroServices/CppMicroServices/issues/54

Expand Down Expand Up @@ -2019,7 +2019,7 @@ system.
### Sequence Diagrams

The following diagrams show the control flow for various events in
SCR.
SCR. Note: There are two component configurations in SCR, Singleton and BundleOrPrototype. Only the Singleton configuration is represented in the diagrams.

##### SCRBundleActivator::Start

Expand Down Expand Up @@ -2065,111 +2065,137 @@ SCR.

<html>

<img src="0003-declarative-services/ComponentContextImpl_EnableComponent.svg" style="width:700px"/>
<img src="0003-declarative-services/ComponentContextEnableComponent.svg" style="width:700px"/>

</html>

##### ComponentContextImpl::DisableComponent

<html>

<img src="0003-declarative-services/ComponentContextImpl_DisableComponent.svg" style="width:700px"/>
<img src="0003-declarative-services/ComponentContextDisableComponent.svg" style="width:700px"/>

</html>

##### ComponentManager::Enable
##### ComponentManagerImpl::Enable

<html>

<img src="0003-declarative-services/ComponentManager_Enable.svg" style="width:50%"/>
<img src="0003-declarative-services/ComponentManagerEnable.svg" style="width:800px"/>

</html>

##### ComponentManager::Disable
##### ComponentManagerImpl::Disable

<html>

<img src="0003-declarative-services/ComponentManager_Disable.svg" style="width:50%"/>
<img src="0003-declarative-services/ComponentManagerDisable.svg" style="width:800px"/>

</html>

##### ComponentConfiguration::Resolve
##### ComponentConfigurationImpl::CreateConfigurationManager

<html>

<img src="0003-declarative-services/ComponentConfiguration_Resolve.svg" style="width:40%"/>
<img src="0003-declarative-services/ComponentConfigurationCreateConfigurationManager.svg" style="width:800px"/>

</html>

##### ComponentConfiguration::GetService
##### ComponentConfigurationImpl::Initialize

<html>

<img src="0003-declarative-services/ComponentConfiguration_GetService.svg" style="width:40%"/>
<img src="0003-declarative-services/ComponentConfigurationInitialize.svg" style="width:800px"/>

</html>

##### UnsatisfiedReferenceState::Register
##### SingletonComponentConfiguration::GetService
##### BundleOrPrototypeComponentConfiguration::GetService

<html>

<img src="0003-declarative-services/UnsatisfiedReferenceState_Register.svg" style="width:50%"/>
<img src="0003-declarative-services/ComponentConfigurationGetService.svg" style="width:800px"/>

</html>

##### SatisfiedState::Activate
##### CCUnsatisfiedReferenceState::Register

<html>

<img src="0003-declarative-services/SatisfiedState_Activate.svg" style="width:50%"/>
<img src="0003-declarative-services/UnsatisfiedStateRegister.svg" style="width:800px"/>

</html>

##### SatisfiedState::DoActivate
##### CCRegisteredState::Activate

<html>

<img src="0003-declarative-services/SatisfiedState_DoActivate.svg" style="width:50%"/>
<img src="0003-declarative-services/RegisteredStateActivate.svg" style="width:800px"/>

</html>

##### SatisfiedState::Deactivate
##### CCActiveState::Activate

<html>

<img src="0003-declarative-services/SatisfiedState_Deactivate.svg" style="width:50%"/>
<img src="0003-declarative-services/ActiveStateActivate.svg" style="width:800px"/>

</html>

##### SatisfiedState::DoDeactivate
##### CCSatisfiedState::Deactivate

<html>

<img src="0003-declarative-services/SatisfiedState_DoDeactivate.svg" style="width:30%"/>
<img src="0003-declarative-services/SatisfiedStateDeactivate.svg" style="width:800px"/>

</html>

##### ActiveState::DoDeactivate
##### ReferenceManagerImpl::AddingService binding policy is static reluctant

<html>

<img src="0003-declarative-services/ActiveState_DoDeactivate.svg" style="width:50%"/>
<img src="0003-declarative-services/ReferenceManagerAddingServiceStaticReluctant.svg" style="width:800px"/>

</html>

##### ReferenceManager::AddingService
##### ReferenceManagerImpl::AddingService binding policy is static greedy

<html>

<img src="0003-declarative-services/ReferenceManager_AddingService.svg" style="width:50%"/>
<img src="0003-declarative-services/ReferenceManagerAddingServiceStaticGreedy.svg" style="width:800px"/>

</html>

##### ReferenceManager::RemovedService
##### ReferenceManagerImpl::AddingService binding policy is dynamic

<html>

<img src="0003-declarative-services/ReferenceManager_RemovedService.svg" style="width:50%"/>
<img src="0003-declarative-services/ReferenceManagerAddingServiceDynamic.svg" style="width:800px"/>

</html>

##### ComponentConfigurationImpl::RefChangedState(Rebind)

<html>

<img src="0003-declarative-services/ComponentConfigurationRebind.svg" style="width:800px"/>

</html>

##### ReferenceManagerImpl::RemovedService static binding policy

<html>

<img src="0003-declarative-services/ReferenceManagerRemovedServiceStatic.svg" style="width:800px"/>

</html>


##### ReferenceManagerImpl::RemovedService dynamic binding policy

<html>

<img src="0003-declarative-services/ReferenceManagerRemovedServiceDynamic.svg" style="width:800px"/>

</html>

Expand Down
3 changes: 3 additions & 0 deletions text/0003-declarative-services/ActiveStateActivate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions text/0003-declarative-services/ComponentManagerDisable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions text/0003-declarative-services/ComponentManagerEnable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions text/0003-declarative-services/RegisteredStateActivate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions text/0003-declarative-services/SatisfiedStateDeActivate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions text/0003-declarative-services/UnsatisfiedStateRegister.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0466777

Please sign in to comment.