Class MStackingPlanner.Plan

java.lang.Object
eu.bandm.music.entities.MStackingPlanner.Plan
Enclosing class:
MStackingPlanner

class MStackingPlanner.Plan extends Object
Result type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Plan(int spontNodeCount, boolean more, boolean none, int solo)
    Constructor for the result if only one bracket must be built.
    Plan(int spontNodeCount, boolean more, boolean none, Integer... factors)
    Constructor for a result object.
    Plan(int spontNodeCount, boolean more, boolean none, List<Integer> factors)
    Constructor for a result object.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the number of all factors / brackets.
    boolean
    Return whether there are definitely no more factors beyond those in this instance.
    Return the rest list after having realized (after dropping) the very first factor.
    int
    Return the number of additional nodes generated by this solution
    int
    Return the very first factor of the found sequential order.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 instance
      none - there are definitely no more factors beyond those in this instance
      factors - the result = the denominators of the bracket proprotions in their sequential order.
    • Plan

      Plan(int spontNodeCount, boolean more, boolean none, List<Integer> factors)
      Constructor for a result object. See Plan(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. See Plan(int,boolean,boolean,Integer...).
  • Method Details

    • rest

      public MStackingPlanner.Plan 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.