Class MarkovTransformationSource
java.lang.Object
org.palladiosimulator.reliability.solver.pcm2markov.MarkovTransformationSource
Holds state information required during the PCM2Markov transformation.
Holds a PCM instance as basis for the transformation, and keeps track of the physical system
states (i.e., states of processing resources) that are considered during the transformation.
-
Constructor Summary
ConstructorDescriptionMarkovTransformationSource
(org.palladiosimulator.solver.models.PCMInstance model, boolean sortDescriptors) Initializes a PCMInformationProvider and creates the corresponding resource descriptors. -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptor
(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification resource) Retrieves a resource descriptor corresponding to the given processing resource specification.getDescriptor
(org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand demand, org.palladiosimulator.solver.transformations.ContextWrapper contextWrapper) Retrieves a resource descriptor corresponding to the given resource demand.org.palladiosimulator.solver.models.PCMInstance
getModel()
Retrieves the PCM instance.Returns a list of resource descriptors whose resources can fail, i.e., whose N/A state probability is greater than 0.void
Prints the current permutation for debugging purposes.
-
Constructor Details
-
MarkovTransformationSource
public MarkovTransformationSource(org.palladiosimulator.solver.models.PCMInstance model, boolean sortDescriptors) Initializes a PCMInformationProvider and creates the corresponding resource descriptors.- Parameters:
model
- the PCM instancesortDescriptors
- indicates if the list of resource descriptors shall be sorted
-
-
Method Details
-
getDescriptor
public ProcessingResourceDescriptor getDescriptor(org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand demand, org.palladiosimulator.solver.transformations.ContextWrapper contextWrapper) Retrieves a resource descriptor corresponding to the given resource demand.- Parameters:
demand
- the resource demandcontextWrapper
- a contextWrapper providing a link to the actual resource- Returns:
- the descriptor; NULL if no corresponding descriptor could be found
-
getDescriptor
public ProcessingResourceDescriptor getDescriptor(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification resource) Retrieves a resource descriptor corresponding to the given processing resource specification.- Parameters:
resource
- the processing resource specification- Returns:
- the descriptor; NULL if no corresponding descriptor could be found
-
getModel
public org.palladiosimulator.solver.models.PCMInstance getModel()Retrieves the PCM instance.- Returns:
- the PCM instance
-
getUnreliableResourceDescriptors
Returns a list of resource descriptors whose resources can fail, i.e., whose N/A state probability is greater than 0.- Returns:
- the list of resource descriptors whose resources can fail, i.e., whose N/A state probability is greater than 0
-
printCurrentResourceStates
public void printCurrentResourceStates()Prints the current permutation for debugging purposes.- Parameters:
descriptors
- the list of resource descriptors
-