Class LocalComponentRegistry

java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.prototype.LocalComponentRegistry

public final class LocalComponentRegistry extends Object
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 Details

    • getInstance

      public static LocalComponentRegistry getInstance()
      Singleton accessor.
      Returns:
      the component registry instance
    • addComponent

      public void addComponent(String id, Object component)
      Adds a component or system to the local registry.
      Parameters:
      id - the ID of the component or system
      component - the component or system obejct
    • getComponent

      public Object getComponent(String id)
      Gets the component or system with the specified ID.
      Parameters:
      id - the ID of the component or system
      Returns:
      the component or system