org.pealfactory.compose.halfleadspliced
Class OutputComp

java.lang.Object
  |
  +--org.pealfactory.compose.halfleadspliced.OutputComp

class OutputComp
extends java.lang.Object

When the composing engine finds a true composition that meets the score minimums, it creates an OutputComp instance and sends it to its ComposerHost. The OutputComp class is initialised with a title and a Composition reference; it queries the Composition to find the best rotation and to obtain the calling. A tables of Leads is then built to represent the first part of the rotated composition.


Field Summary
private  int fBalance
          Method balance score 0-100%
private  int fCOM
          Must be held per part
private  Lead[] fLeads
           
private  boolean fLHOnly
           
private  int fMusic
           
private  int fNParts
           
private  int fScore
           
private  java.lang.String fTitle
           
private  int fUnbalance
          Counts for balance pruning
static java.lang.String kNEWLINE
           
 
Constructor Summary
OutputComp(java.lang.String title, Composition comp, int score, RowNode start, boolean lhOnly)
           
 
Method Summary
 int compareTo(OutputComp comp)
          Returns +1 if we score more, -1 if less
 int getBalance()
           
 int getCOM()
          Changes of method per part - multiply by getNParts() to get total.
 Lead getLead(int i)
           
 int getMusic()
           
 int getNLeads()
           
 int getNParts()
           
 int getScore()
           
 java.lang.String getTitle()
           
 int getUnbalanceCount()
           
 java.lang.String toString(java.lang.String titleExtra)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

kNEWLINE

public static final java.lang.String kNEWLINE

fTitle

private java.lang.String fTitle

fLeads

private Lead[] fLeads

fNParts

private int fNParts

fMusic

private int fMusic

fScore

private int fScore

fCOM

private int fCOM
Must be held per part

fBalance

private int fBalance
Method balance score 0-100%

fUnbalance

private int fUnbalance
Counts for balance pruning

fLHOnly

private boolean fLHOnly
Constructor Detail

OutputComp

public OutputComp(java.lang.String title,
                  Composition comp,
                  int score,
                  RowNode start,
                  boolean lhOnly)
Method Detail

getLead

public Lead getLead(int i)

toString

public java.lang.String toString(java.lang.String titleExtra)

compareTo

public int compareTo(OutputComp comp)
Returns +1 if we score more, -1 if less

getTitle

public java.lang.String getTitle()

getNParts

public int getNParts()

getMusic

public int getMusic()

getScore

public int getScore()

getCOM

public int getCOM()
Changes of method per part - multiply by getNParts() to get total.

getBalance

public int getBalance()

getUnbalanceCount

public int getUnbalanceCount()

getNLeads

public int getNLeads()