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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
calculate(ServiceSpecification specification)
Calculates the checksum for the provided specification.String
identify()
void
update(ServiceSpecification specification)
Updates the checksum of the provided specification.
-
-
-
Method Detail
-
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.
-
-