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
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.3-251.5, see this pretty
print.)-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.protected static final int
protected Rational
Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).protected Rational
Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).protected int
Divisor for generating new approximations. -
Constructor Summary
ConstructorDescriptionSynthetic minimal constructor provided by the umod compiler. -
Method Summary
Modifier and TypeMethodDescriptiondoclone()
Clones this object.boolean
Generated by umod because this class isALGEBRAIC
.format()
Delivers a format object for pretty-printing by inheritance from some ancestor class.boolean
Whether resulting distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).int
Divisor for generating new approximations.int
hashCode()
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.Maximally allowed distance below the approximation; it holds that (found_approx - orig <= distance_lower).Maximally allowed distance above the approximation; it holds that (orig - found_approx <= distance_upper).with_divisor
(int val) Divisor for generating new approximations.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.6-238.6, see this pretty print.)
The type of this field isRational
(maybe null)
Its value defaults toRational.valueOf(1, 128)
. -
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.6-243.6, see this pretty print.)
The type of this field isRational
(maybe null)
Its value defaults toRational.valueOf(1, 128)
. -
divisor
protected int divisorDivisor for generating new approximations.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.5-248.5, see this pretty print.)
The type of this field is int(never null)
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.5-251.5, see this pretty print.)
The type of this field is boolean(never null)
Its value defaults tofalse
.
-
-
Constructor Details
-
Nota_tempusApproximandum
public Nota_tempusApproximandum()Synthetic minimal constructor provided by the umod compiler.
Constructor with minimal set of arguments, supplied automatically by the umod compiler, not explicitly by user.
(All object fields are set to their default values.)
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Returns:
- a fresh copy.
-
format
Delivers a format object for pretty-printing by inheritance from some ancestor class.- Specified by:
format
in 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.6-238.6, see this pretty print.)
Generated getter method. @see #distance_lower- Returns:
- The current field value of type
Rational
(maybe null)
-
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.6-238.6, see this pretty print.)
- Parameters:
val
- the new value of typeRational
(maybe null)- 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.6-243.6, see this pretty print.)
Generated getter method. @see #distance_upper- Returns:
- The current field value of type
Rational
(maybe null)
-
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.6-243.6, see this pretty print.)
- Parameters:
val
- the new value of typeRational
(maybe null)- 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.5-248.5, see this pretty print.)
Generated getter method. @see #divisor- Returns:
- The current field value of type int(never null)
-
with_divisor
Divisor for generating new approximations.(This definition has been created by UMod from the source at SYSTEM "MetricParameters.umod":247.5-248.5, see this pretty print.)
- Parameters:
val
- the new value of type int(never null)- 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.5-251.5, see this pretty print.)
Generated getter method. @see #allow_coincidence- Returns:
- The current field value of type boolean(never null)
-
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.5-251.5, see this pretty print.)
- Parameters:
val
- the new value of type boolean(never null)- Returns:
- a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
- See Also:
-