Class FailureDescription
java.lang.Object
org.palladiosimulator.reliability.solver.pcm2markov.FailureDescription
Describes a point of failure in a PCM model.
-
Constructor Summary
ConstructorDescriptionFailureDescription
(MarkovFailureType type, double probability) Creates a new FailureDescription. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
Retrieves the probability of failure.final MarkovFailureType
Retrieves the type of failure.void
setFailureProbability
(double failureProbability) Overwrites an existing failure probability.
-
Constructor Details
-
FailureDescription
Creates a new FailureDescription.- Parameters:
type
- the type of failureprobability
- the probability of failure
-
-
Method Details
-
getFailureProbability
public final double getFailureProbability()Retrieves the probability of failure.- Returns:
- the probability of failure
-
getFailureType
Retrieves the type of failure.- Returns:
- the type of failure
-
setFailureProbability
public void setFailureProbability(double failureProbability) Overwrites an existing failure probability.- Parameters:
failureProbability
-
-