Interface SpecificationChecksumCalculator

All Known Implementing Classes:
Checksum_PCM_10

public interface SpecificationChecksumCalculator
Interface for algorithm which calculate the checksum for a given specification.
  • Method Details

    • calculate

      long calculate(ServiceSpecification specification)
      Calculates the checksum for the provided specification. Throws a runtime exception if the calculation fails, e.g. the specification language is not supported.
      Parameters:
      specification - The performance specification.
    • identify

      String identify()
      Returns:
      The unique identifier for this algorithm.
    • update

      void update(ServiceSpecification specification)
      Updates the checksum of the provided specification. Throws a runtime exception if the calculation fails, e.g. the specification language is not supported.
      Parameters:
      specification - The performance specification.