Class SpecComparator
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.aas.SpecComparator
Specification comparator.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DecimalFormatprivate static final Map<File, SpecComparator.SpecPair> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcompare(AasSpecSummary pdf, AasSpecSummary aas) Compares two spec summaries.static voidReads the spec files and compares them structurally.private static voidRegisters a givenfile, selects for AASX or XLSX.sortTypes(AasSpecSummary summary) Sorts and returns the types insummary.
-
Field Details
-
SPECS
-
PERCENT_FORMAT
-
-
Constructor Details
-
SpecComparator
public SpecComparator()
-
-
Method Details
-
register
Registers a givenfile, selects for AASX or XLSX.- Parameters:
file- the file
-
sortTypes
Sorts and returns the types insummary.- Parameters:
summary- the summary instance- Returns:
- the type
-
compare
Compares two spec summaries.- Parameters:
pdf- the PDF summary (considered to be ground truth)aas- the AAS summary
-
main
Reads the spec files and compares them structurally.- Parameters:
args- the command line arguments, ignored
-