Interface RecoverySeff
- All Known Implementing Classes:
SeffCreator
-
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.pcm.seff.seff_reliability.RecoveryActionBehaviour
withAlternativeRecoveryBehaviour
(org.palladiosimulator.pcm.seff.seff_reliability.RecoveryActionBehaviour recoveryBehaviour) Adds an alternative recovery behaviour to this recovery behaviour.withFailureType
(Failure failure) Adds the failure typefailure
to this recovery behaviour's occurring failure types.withFailureType
(org.palladiosimulator.pcm.reliability.FailureType failureType) Adds the failure typefailure
to this recovery behaviour's occurring failure types.Defines the unique name of this recovery behaviour.Specifies the body behaviour of this RecoverActionBehaviour.
-
Method Details
-
withName
Defines the unique name of this recovery behaviour. Once created recovery behaviours are referenced by this name. Only recovery behaviours with a unique name can be fetched from the repository.- Parameters:
name
-- Returns:
- this recovery behaviour in the making
-
withSeffBehaviour
StartSeff withSeffBehaviour()Specifies the body behaviour of this RecoverActionBehaviour. Every body behaviour starts with astart action
followed by an arbitrary amount of otheractions
. The body behaviour always ends with a stop action and a finishing call on the methodcreateBehaviourNow()
.- Returns:
- this recovery behaviour's starting body behaviour
-
withFailureType
Adds the failure typefailure
to this recovery behaviour's occurring failure types.A recovery behaviour is failure handling entity i.e. it can handle failures that occur in previous alternatives. If one alternative fails, the next alternative is executed that can handle the failure type. The failure type
failure
is (one of) the failure type(s) this recovery behaviour can handle.A failure can be one of 'HARDWARE_CPU', 'HARDWARE_HDD', 'HARDWARE_DELAY', 'NETWORK_LAN', 'SOFTWARE'.
- Parameters:
failure
-- Returns:
- this recovery behaviour in the making
- See Also:
-
withFailureType
Adds the failure typefailure
to this recovery behaviour's occurring failure types.A recovery behaviour is failure handling entity i.e. it can handle failures that occur in previous alternatives. If one alternative fails, the next alternative is executed that can handle the failure type. The failure type
failure
is (one of) the failure type(s) this recovery behaviour can handle.An existing
failureType
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfFailureType(name)
.- Parameters:
failureType
-- Returns:
- this recovery behaviour in the making
- See Also:
-
withAlternativeRecoveryBehaviour
RecoverySeff withAlternativeRecoveryBehaviour(org.palladiosimulator.pcm.seff.seff_reliability.RecoveryActionBehaviour recoveryBehaviour) Adds an alternative recovery behaviour to this recovery behaviour.A recovery action behaviour provides a behaviour and alternatives of recovery behaviours. They are resource demanding behaviours, thus any behaviour can be defined as an alternative. The alternatives of a recovery block form a chain. They are failure handling entities, i.e. they can handle failures that occur in previous alternatives. If one alternative fails, the next alternative is executed that can handle the failure type. The alternatives are referenced by name and have to be previously defined. Thus the chain of alternatives has to be created inversely. The last alternative that has no alternatives itself is created first, so that the second last can reference it as its alternative.
Previously defined RecoveryActionBehaviours can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.fetchOfRecoveryActionBehaviour(name)
.- Parameters:
recoveryBehaviour
-- Returns:
- this recovery behaviour in the making
- See Also:
-
buildRecoveryBehaviour
org.palladiosimulator.pcm.seff.seff_reliability.RecoveryActionBehaviour buildRecoveryBehaviour()
-