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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEvent
    toConstraintViolation(double capacity, double capacityDeviation)
    Turns a source volume adaptation event into a CAPACITY constraint violation.
    static eu.qualimaster.monitoring.events.ConstraintViolationAdaptationEvent
    toConstraintViolation(eu.qualimaster.adaptation.events.SourceVolumeAdaptationEvent event)
    Turns a source volume adaptation event into a ITEMS constraint violation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 value
      capacityDeviation - the deviation
      Returns:
      the converted event (may be null if the parameters are not valid)