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.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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
OutputComp
public OutputComp(java.lang.String title,
Composition comp,
int score,
RowNode start,
boolean lhOnly)
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()