A backend for (immutable) number representations that allows to switch between different real and rational implementations.
This code is developed by the NetworkCalculus.org contributors for use in the Deterministic Network Calculator (DNC). See networkcalculus.org.
It is currently not possible to mix instances of different implementations. Yet, for performance reasons, only the equals(Object obj)
methods check for obj instanceof
and will then simply return false
. Other methods will simply raise some exception (most probably a cannot cast exception).