Package eu.bandm.music.entities
Class MetricParameters.Nota_tempusApproximandum
java.lang.Object
eu.bandm.music.entities.MetricParameters.Nota_tempusApproximandum
- All Implemented Interfaces:
Formattable,Cloneable
- Enclosing class:
MetricParameters
@Generated(generator="eu.bandm.tools.umod",
version="",
timestamp="2026-10-23_14h02m37")
public static class MetricParameters.Nota_tempusApproximandum
extends Object
implements Cloneable, Formattable
The parameters when MCover works in "binary
approximation mode", which divides only
by two(2) until the approximation is better than the given thresholds.
(This definition has been created by UMod
from the source at SYSTEM "MetricParameters.umod":233.2-26, see this pretty
print.)-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)
The type of this field is boolean(nevernull)
Its value defaults tofalse.
protected static final intMaximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)
The type of this field isRational(maybenull)
Its value defaults toRational.valueOf(1, 128).
Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)
The type of this field isRational(maybenull)
Its value defaults toRational.valueOf(1, 128).
protected intDivisor for generating new approximations.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)
The type of this field is int(nevernull)
Its value defaults to2.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with minimal set of arguments, is supplied automatically by the umod compiler, not explicitly by the user.
(All object fields are set to their default values.)
-
Method Summary
Modifier and TypeMethodDescriptiondoclone()Clones this object.booleanGenerated by umod because this class isALGEBRAIC.format()Delivers a format object for pretty-printing by inheritance from some ancestor class.booleanWhether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)
Generated getter method.Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)
Generated getter method.Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)
Generated getter method.intDivisor for generating new approximations.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)
Generated getter method.inthashCode()Generated by umod because this class isALGEBRAIC.Copies values of all common fields from the argument.with_allow_coincidence(boolean val) Whether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)with_divisor(int val) Divisor for generating new approximations.
(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)boolean
-
Field Details
-
BASE_HASH
protected static final int BASE_HASH -
distance_lower
Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)
The type of this field isRational(maybenull)
Its value defaults toRational.valueOf(1, 128).
- See Also:
-
distance_upper
Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)
The type of this field isRational(maybenull)
Its value defaults toRational.valueOf(1, 128).
- See Also:
-
divisor
protected int divisorDivisor for generating new approximations.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)
The type of this field is int(nevernull)
Its value defaults to2.
- See Also:
-
allow_coincidence
protected boolean allow_coincidenceWhether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)
The type of this field is boolean(nevernull)
Its value defaults tofalse.
- See Also:
-
-
Constructor Details
-
Nota_tempusApproximandum
public Nota_tempusApproximandum()Constructor with minimal set of arguments, is supplied automatically by the umod compiler, not explicitly by the user.
(All object fields are set to their default values.)
-
-
Method Details
-
doclone
- Returns:
- a fresh copy.
-
format
Delivers a format object for pretty-printing by inheritance from some ancestor class.- Specified by:
formatin interfaceFormattable- Returns:
- a format that represents this object in a pretty-printable way
-
equals
Generated by umod because this class isALGEBRAIC. -
x_equals
-
hashCode
public int hashCode()Generated by umod because this class isALGEBRAIC. -
initFrom
Copies values of all common fields from the argument. All fields of this class definition are copied, iff the argument is of this class. Then the superclass method is invoked with the same argument. -
get_distance_lower
Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
Rational(maybenull) - See Also:
-
with_distance_lower
Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":237.5-19, see this pretty print.)
- Parameters:
val- the new value of typeRational(maybenull)- Returns:
- a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
- See Also:
-
get_distance_upper
Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
Rational(maybenull) - See Also:
-
with_distance_upper
Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":242.5-19, see this pretty print.)
- Parameters:
val- the new value of typeRational(maybenull)- Returns:
- a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
- See Also:
-
get_divisor
public int get_divisor()Divisor for generating new approximations.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type int(never
null) - See Also:
-
with_divisor
Divisor for generating new approximations.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.4-11, see this pretty print.)
- Parameters:
val- the new value of type int(nevernull)- Returns:
- a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
- See Also:
-
get_allow_coincidence
public boolean get_allow_coincidence()Whether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type boolean(never
null) - See Also:
-
with_allow_coincidence
Whether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":250.4-21, see this pretty print.)
- Parameters:
val- the new value of type boolean(nevernull)- Returns:
- a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
- See Also:
-