Class LocalComponentRegistry
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.prototype.LocalComponentRegistry
The LocalComponentRegistry singleton provides methods for registering components and systems.
It is used to transfer references of components and systems to their respective ports.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(String id, Object component) Adds a component or system to the local registry.getComponent
(String id) Gets the component or system with the specified ID.static LocalComponentRegistry
Singleton accessor.
-
Method Details
-
getInstance
Singleton accessor.- Returns:
- the component registry instance
-
addComponent
Adds a component or system to the local registry.- Parameters:
id
- the ID of the component or systemcomponent
- the component or system obejct
-
getComponent
Gets the component or system with the specified ID.- Parameters:
id
- the ID of the component or system- Returns:
- the component or system
-