Package eu.bandm.music.entities
Class MStackingPlanner.Plan
java.lang.Object
eu.bandm.music.entities.MStackingPlanner.Plan
- Enclosing class:
- MStackingPlanner
Result type.
-
Constructor Summary
ConstructorDescriptionPlan
(int spontNodeCount, boolean more, boolean none, int solo) Constructor for the result if only one bracket must be built.Constructor for a result object.Constructor for a result object. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the number of all factors / brackets.boolean
Return whether there are definitely no more factors beyond those in this instance.rest()
Return the rest list after having realized (after dropping) the very first factor.int
Return the number of additional nodes generated by this solutionint
Return the very first factor of the found sequential order.
-
Constructor Details
-
Plan
Plan(int spontNodeCount, boolean more, boolean none, Integer... factors) Constructor for a result object.- Parameters:
spontNodeCount
- quality measure for variants: number of required synthetic nodes.more
- there are definitely more factors, not yet in this instancenone
- there are definitely no more factors beyond those in this instancefactors
- the result = the denominators of the bracket proprotions in their sequential order.
-
Plan
Constructor for a result object. SeePlan(int,boolean,boolean,Integer...)
. -
Plan
Plan(int spontNodeCount, boolean more, boolean none, int solo) Constructor for the result if only one bracket must be built. SeePlan(int,boolean,boolean,Integer...)
.
-
-
Method Details
-
rest
Return the rest list after having realized (after dropping) the very first factor. -
topFactor
public int topFactor()Return the very first factor of the found sequential order. -
spontNodeCount
public int spontNodeCount()Return the number of additional nodes generated by this solution -
factorsSize
public int factorsSize()Return the number of all factors / brackets. -
noFactorsPending
public boolean noFactorsPending()Return whether there are definitely no more factors beyond those in this instance.
-