Class PrototypeBridge


  • @Singleton
    public final class PrototypeBridge
    extends Object
    The PrototypeBridge class is used to make generated prototype data available to the framework.
    • Constructor Detail

      • PrototypeBridge

        public PrototypeBridge()
    • Method Detail

      • setContainers

        public void setContainers​(PrototypeBridge.Container[] containers)
        Sets the containers.
        Parameters:
        containers - the containers
      • getContainers

        public PrototypeBridge.Container[] getContainers()
        Gets the containers.
        Returns:
        an array with all containers
      • getContainer

        public PrototypeBridge.Container getContainer​(String containerId)
        Gets the container with the specified ID.
        Parameters:
        containerId - the ID of the container to retrieve
        Returns:
        the container with the specified ID
      • setUsageScenarios

        public void setUsageScenarios​(IUsageScenario[] scenarios)
        Sets the usage scenarios.
        Parameters:
        scenarios - the usage scenarios
      • getUsageScenarios

        public IUsageScenario[] getUsageScenarios()
        Gets the usage scenarios.
        Returns:
        the usage scenarios
      • setSystem

        public void setSystem​(PrototypeBridge.System system)
        Sets the system.
        Parameters:
        system - the system
      • setAllocations

        public void setAllocations​(PrototypeBridge.Allocation[] allocations)
        Sets the allocations.
        Parameters:
        allocations - the allocations
      • getAllocations

        public PrototypeBridge.Allocation[] getAllocations​(String containerId)
        Gets the allocations for the specified container.
        Parameters:
        containerId - the container whose allocations will be retrieved
        Returns:
        the allocations for the specified container