Class PrototypeBridge
- java.lang.Object
-
- org.palladiosimulator.protocom.framework.java.ee.prototype.PrototypeBridge
-
@Singleton public final class PrototypeBridge extends Object
The PrototypeBridge class is used to make generated prototype data available to the framework.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PrototypeBridge.Allocation
The Allocation class stores the data of a PCM allocation.class
PrototypeBridge.Container
The Container class stores the data of a PCM resource container.class
PrototypeBridge.System
The System class stores the data of a PCM system.
-
Constructor Summary
Constructors Constructor Description PrototypeBridge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrototypeBridge.Allocation[]
getAllocations()
Gets the allocations.PrototypeBridge.Allocation[]
getAllocations(String containerId)
Gets the allocations for the specified container.PrototypeBridge.Container
getContainer(String containerId)
Gets the container with the specified ID.PrototypeBridge.Container[]
getContainers()
Gets the containers.PrototypeBridge.System
getSystem()
Gets the system.IUsageScenario[]
getUsageScenarios()
Gets the usage scenarios.void
setAllocations(PrototypeBridge.Allocation[] allocations)
Sets the allocations.void
setContainers(PrototypeBridge.Container[] containers)
Sets the containers.void
setSystem(PrototypeBridge.System system)
Sets the system.void
setUsageScenarios(IUsageScenario[] scenarios)
Sets the usage scenarios.
-
-
-
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
-
getSystem
public PrototypeBridge.System getSystem()
Gets the system.- Returns:
- the system
-
setAllocations
public void setAllocations(PrototypeBridge.Allocation[] allocations)
Sets the allocations.- Parameters:
allocations
- the allocations
-
getAllocations
public PrototypeBridge.Allocation[] getAllocations()
Gets the allocations.- Returns:
- 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
-
-