Class BuiltinSemiringLibrary
java.lang.Object
com.darkcollective.relix.provenance.internal.BuiltinSemiringLibrary
- All Implemented Interfaces:
SemiringLibrary
The semirings this module ships: boolean existence, ℕ multiplicity, tropical
shortest-path, the security lattice,
ℕ[X] lineage and cheapest-route.
It is an ordinary SemiringLibrary and is read through the same seam a
third-party one is, so the bundled six are not a privileged case that an installed
semiring has to be worked around. It is not discovered by
ServiceLoader — it lives in the same module as the catalog that reads
it and is registered directly, so the built-ins are present whatever the packaging.
It ships at priority 0, which is what lets an installed library
either replace one of these by declaring a higher priority or fill gaps around them by
declaring a lower one.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionname()A short identifier for this library, used in diagnostics — including the one that reports two libraries offering the same semiring name.The semirings this library offers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.darkcollective.relix.provenance.SemiringLibrary
priority
-
Field Details
-
INSTANCE
The single instance.
-
-
Method Details
-
name
Description copied from interface:SemiringLibraryA short identifier for this library, used in diagnostics — including the one that reports two libraries offering the same semiring name.- Specified by:
namein interfaceSemiringLibrary- Returns:
- the library's name; never
nullor blank
-
semirings
Description copied from interface:SemiringLibraryThe semirings this library offers.- Specified by:
semiringsin interfaceSemiringLibrary- Returns:
- the semirings, each with the names it answers to; never
null
-