Interface SpecificationChecksumCalculator
- All Known Implementing Classes:
Checksum_PCM_10
public interface SpecificationChecksumCalculator
Interface for algorithm which calculate the checksum for a given specification.
-
Method Summary
Modifier and TypeMethodDescriptionlong
calculate
(ServiceSpecification specification) Calculates the checksum for the provided specification.identify()
void
update
(ServiceSpecification specification) Updates the checksum of the provided specification.
-
Method Details
-
calculate
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
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.
-