Class ConstraintViolationConverter
java.lang.Object
eu.qualimaster.easy.extension.internal.ConstraintViolationConverter
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class ConstraintViolationConverter
extends Object
implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Converts specific events into constraint violations. This shall only be available for
certain event types, i.e., the respective constructors are not available in rt-VIL.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEventtoConstraintViolation(double capacity, double capacityDeviation) Turns a source volume adaptation event into a CAPACITY constraint violation.static eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEventtoConstraintViolation(eu.qualimaster.adaptation.events.SourceVolumeAdaptationEvent event) Turns a source volume adaptation event into a ITEMS constraint violation.
-
Constructor Details
-
ConstraintViolationConverter
public ConstraintViolationConverter()
-
-
Method Details
-
toConstraintViolation
public static eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEvent toConstraintViolation(eu.qualimaster.adaptation.events.SourceVolumeAdaptationEvent event) Turns a source volume adaptation event into a ITEMS constraint violation. Just for internal use!!- Parameters:
event- the source volume adaptation event- Returns:
- the converted event
-
toConstraintViolation
public static eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEvent toConstraintViolation(double capacity, double capacityDeviation) Turns a source volume adaptation event into a CAPACITY constraint violation. Just for internal use!!- Parameters:
capacity- the violating capacity valuecapacityDeviation- the deviation- Returns:
- the converted event (may be null if the parameters are not valid)
-