Class PrototypeBridge
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.prototype.PrototypeBridge
The PrototypeBridge class is used to make generated prototype data available to the framework.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
The Allocation class stores the data of a PCM allocation.class
The Container class stores the data of a PCM resource container.class
The System class stores the data of a PCM system. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the allocations.getAllocations
(String containerId) Gets the allocations for the specified container.getContainer
(String containerId) Gets the container with the specified ID.Gets the containers.Gets the system.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.
-
Constructor Details
-
PrototypeBridge
public PrototypeBridge()
-
-
Method Details
-
setContainers
Sets the containers.- Parameters:
containers
- the containers
-
getContainers
Gets the containers.- Returns:
- an array with all containers
-
getContainer
Gets the container with the specified ID.- Parameters:
containerId
- the ID of the container to retrieve- Returns:
- the container with the specified ID
-
setUsageScenarios
Sets the usage scenarios.- Parameters:
scenarios
- the usage scenarios
-
getUsageScenarios
Gets the usage scenarios.- Returns:
- the usage scenarios
-
setSystem
Sets the system.- Parameters:
system
- the system
-
getSystem
Gets the system.- Returns:
- the system
-
setAllocations
Sets the allocations.- Parameters:
allocations
- the allocations
-
getAllocations
Gets the allocations.- Returns:
- the allocations
-
getAllocations
Gets the allocations for the specified container.- Parameters:
containerId
- the container whose allocations will be retrieved- Returns:
- the allocations for the specified container
-