Class DeltaIoTReconfigurationStrategy
java.lang.Object
org.palladiosimulator.simexp.pcm.examples.deltaiot.strategy.DeltaIoTReconfigurationStrategy
- All Implemented Interfaces:
BasePolicy<QVToReconfiguration>
,Policy<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator,
QVToReconfiguration>
- Direct Known Subclasses:
GlobalQualityBasedReconfigurationStrategy
,LocalQualityBasedReconfigurationStrategy
public abstract class DeltaIoTReconfigurationStrategy
extends Object
implements Policy<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator,QVToReconfiguration>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionprotected PrismSimulatedMeasurementSpec
static final Threshold
static final Threshold
protected PrismSimulatedMeasurementSpec
protected DeltaIoTReconfigurationParamRepository
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
decreaseTransmissionPower
(String varRef, TransmissionPowerReconfiguration reconf) protected abstract QVToReconfiguration
handleEnergyConsumption
(PcmSelfAdaptiveSystemState<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state, SimulatedMeasurement energyConsumtption, Set<QVToReconfiguration> options) protected abstract QVToReconfiguration
handlePacketLoss
(PcmSelfAdaptiveSystemState<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state, SimulatedMeasurement packetLoss, Set<QVToReconfiguration> options) protected boolean
increaseDistributionFactor
(org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition branchToIncrease, org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition branchToDecrease, DistributionFactorReconfiguration reconf) protected boolean
protected boolean
protected boolean
protected boolean
increaseTransmissionPower
(String varRef, TransmissionPowerReconfiguration reconf) protected DistributionFactorReconfiguration
protected TransmissionPowerReconfiguration
select
(State source, Set<QVToReconfiguration> options) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.simexp.markovian.activity.BasePolicy
getId
-
Field Details
-
VARIABLE_REFERENCE_3_TO_1
- See Also:
-
VARIABLE_REFERENCE_8_TO_1
- See Also:
-
VARIABLE_REFERENCE_9_TO_1
- See Also:
-
VARIABLE_REFERENCE_4_TO_1
- See Also:
-
VARIABLE_REFERENCE_10_TO_6
- See Also:
-
VARIABLE_REFERENCE_10_TO_5
- See Also:
-
VARIABLE_REFERENCE_5_TO_9
- See Also:
-
VARIABLE_REFERENCE_6_TO_4
- See Also:
-
VARIABLE_REFERENCE_7_TO_3
- See Also:
-
VARIABLE_REFERENCE_7_TO_2
- See Also:
-
VARIABLE_REFERENCE_2_TO_4
- See Also:
-
VARIABLE_REFERENCE_11_TO_7
- See Also:
-
VARIABLE_REFERENCE_13_TO_11
- See Also:
-
VARIABLE_REFERENCE_12_TO_7
- See Also:
-
VARIABLE_REFERENCE_12_TO_3
- See Also:
-
VARIABLE_REFERENCE_14_TO_12
- See Also:
-
VARIABLE_REFERENCE_15_TO_12
- See Also:
-
VARIABLE_REFERENCES
-
LOWER_PACKET_LOSS
-
LOWER_ENERGY_CONSUMPTION
-
reconfParamsRepo
-
packetLossSpec
-
energyConsumptionSpec
-
-
Constructor Details
-
DeltaIoTReconfigurationStrategy
protected DeltaIoTReconfigurationStrategy()
-
-
Method Details
-
select
- Specified by:
select
in interfaceBasePolicy<QVToReconfiguration>
-
handlePacketLoss
protected abstract QVToReconfiguration handlePacketLoss(PcmSelfAdaptiveSystemState<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state, SimulatedMeasurement packetLoss, Set<QVToReconfiguration> options) -
handleEnergyConsumption
protected abstract QVToReconfiguration handleEnergyConsumption(PcmSelfAdaptiveSystemState<org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state, SimulatedMeasurement energyConsumtption, Set<QVToReconfiguration> options) -
retrieveDistributionFactorReconfiguration
protected DistributionFactorReconfiguration retrieveDistributionFactorReconfiguration(Set<QVToReconfiguration> options) -
retrieveTransmissionPowerReconfiguration
protected TransmissionPowerReconfiguration retrieveTransmissionPowerReconfiguration(Set<QVToReconfiguration> options) -
increaseDistributionFactor
protected boolean increaseDistributionFactor(org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition branchToIncrease, org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition branchToDecrease, DistributionFactorReconfiguration reconf) -
increaseDistributionFactorOfMote7
-
decreaseDistributionFactorOfMote7
-
increaseDistributionFactorOfMote10
-
decreaseDistributionFactorOfMote10
-
increaseDistributionFactorOfMote12
-
decreaseDistributionFactorOfMote12
-
increaseTransmissionPower
-
decreaseTransmissionPower
-