Class RemoveDemandModifyingBehaviorStrategy
java.lang.Object
org.palladiosimulator.simulizar.failurescenario.interpreter.strategies.AbstractDemandModifyingBehaviorStrategy
org.palladiosimulator.simulizar.failurescenario.interpreter.strategies.impl.RemoveDemandModifyingBehaviorStrategy
- All Implemented Interfaces:
FailureBehaviorChangingStrategy
-
Field Summary
Fields inherited from class org.palladiosimulator.simulizar.failurescenario.interpreter.strategies.AbstractDemandModifyingBehaviorStrategy
behavior, modifiableResource
-
Constructor Summary
ConstructorDescriptionRemoveDemandModifyingBehaviorStrategy
(de.uka.ipd.sdq.simucomframework.resources.DemandModifyingBehavior behavior) Alternative Constructor if the resource is not yet known.RemoveDemandModifyingBehaviorStrategy
(de.uka.ipd.sdq.simucomframework.resources.IResourceDemandModifiable modifiableResource, de.uka.ipd.sdq.simucomframework.resources.DemandModifyingBehavior behavior) -
Method Summary
Methods inherited from class org.palladiosimulator.simulizar.failurescenario.interpreter.strategies.AbstractDemandModifyingBehaviorStrategy
allocateContext, isValid, setDecider
-
Constructor Details
-
RemoveDemandModifyingBehaviorStrategy
public RemoveDemandModifyingBehaviorStrategy(de.uka.ipd.sdq.simucomframework.resources.IResourceDemandModifiable modifiableResource, de.uka.ipd.sdq.simucomframework.resources.DemandModifyingBehavior behavior) -
RemoveDemandModifyingBehaviorStrategy
public RemoveDemandModifyingBehaviorStrategy(de.uka.ipd.sdq.simucomframework.resources.DemandModifyingBehavior behavior) Alternative Constructor if the resource is not yet known. It must be set in the strategy.allocate(context).- Parameters:
behavior
-
-
-
Method Details
-
execute
public void execute()Description copied from interface:FailureBehaviorChangingStrategy
Executes the strategy. Before, you should test if this call is possible by calling isValid().- Specified by:
execute
in interfaceFailureBehaviorChangingStrategy
- Specified by:
execute
in classAbstractDemandModifyingBehaviorStrategy
-
getRevertedStrategy
- Specified by:
getRevertedStrategy
in interfaceFailureBehaviorChangingStrategy
- Specified by:
getRevertedStrategy
in classAbstractDemandModifyingBehaviorStrategy
-