org.pealfactory.compose.halfleadspliced
Class ComposerLH

java.lang.Object
  |
  +--org.pealfactory.bronze.Tracker
        |
        +--org.pealfactory.compose.halfleadspliced.Composer
              |
              +--org.pealfactory.compose.halfleadspliced.ComposerLH
All Implemented Interfaces:
java.lang.Runnable, StandardMethods, Trackable

public class ComposerLH
extends Composer

Extends the base Composer class to provide an inner doCompose() search loop for the leadhead-only with-calls search.

Since:
Tinuviel

Fields inherited from class org.pealfactory.compose.halfleadspliced.Composer
f1stHalfMethodCounts, f1stHalfMethodIndices, f2ndHalfMethodCounts, f2ndHalfMethodIndices, fAllowCalls, fBalanceScore, fBestBalance, fBestCOM, fBestMusic, fBestScore, fCalls, fComp, fComposing, fCompositeMethods, fCompsChecked, fCompsPerSec, fCOMScore, fCounter, fHost, fInitialProgress, fInitialTime, fLastComps, fLastNodes, fLastTime, fLeadsPerPart, fLHOnlyMethods, fLHSpliced, fMaxMethodsAtRepeatLimit, fMethodCounts, fMethodIndices, fMethodRepeatLimit, fMethods, fMinBalance, fMinCOM, fMinScore, fN1stHalfAtMaxRepeat, fN2ndHalfAtMaxRepeat, fNCompMethods, fNComps, fNicePartEnds, fNMethods, fNodesPerSec, fNodesSearched, fNParts, fProgressCumulatives, fProgressRatios, fRegenPtr, fRounds, fSearchTime, fStartTime, fTables, fTenorsTogether, fTruthTable, kCHECK_FREQ, kCOPYRIGHT, kDISPLAY_INTERVAL, kNBELLS, kTOTAL_DURATION, kVERSION
 
Fields inherited from class org.pealfactory.bronze.Tracker
fAbort, fDelegateDuration, fDelegateJob, fError, fErrorMsg, fJobName, fPause, fProgress, fTask, fTotalDuration, fWorker, kDEFAULT_JOB_NAME, kRESPONSE_TIME
 
Fields inherited from interface org.pealfactory.compose.halfleadspliced.StandardMethods
kASHTEAD, kBELFAST, kBRISTOL, kCAMBRIDGE, kCASSIOBURY, kGLASGOW, kLINCOLNSHIRE, kLONDON, kPUDSEY, kRUTLAND, kSUPERLATIVE, kUXBRIDGE, kYORKSHIRE
 
Fields inherited from interface org.pealfactory.bronze.Trackable
kERROR_NONE
 
Constructor Summary
(package private) ComposerLH(Tables tables, int leadsPerPart, int nParts, boolean tenorsTogether, boolean nicePartEnds, boolean ATW, int calls)
           
 
Method Summary
(package private)  int backtrack(int i)
          LH only!
(package private)  int calcMethodBalance()
          This one for LH-only search! 100 = perfect balance of all methods in the array 0 = one or more missing
(package private)  void doCompose()
          This one does does leadhead changes only (plus calls)
(package private)  void reduceMethodCounts(int i)
          LH search only!
 
Methods inherited from class org.pealfactory.compose.halfleadspliced.Composer
calcMethodDistribution, calcProgressRatios, calcUnbalance, checkComp, checkStats, compose, create, estimateTimeLeft, findMethod, getBestBalance, getBestCOM, getBestMusic, getBestScore, getComposingProgress, getCompsPerSec, getNComps, getNNodes, getNodesPerSec, getSearchTime, initRepeatLimits, isComposing, isLHSpliced, reduceMethodCounts, setAllowCalls, setBalanceScore, setCOMScore, setMinBalance, setMinCOM, setMinScore, setRepeatLimits, setStartComp
 
Methods inherited from class org.pealfactory.bronze.Tracker
abort, abortWorker, endDelegateJob, getErrorMsg, getJobName, getProgress, getProgress, isAborted, isError, isFinished, isPaused, pause, reset, resume, run, setErrorMsg, setJobName, setProgress, setTotalDuration, startDelegateJob, startWorker, test, waitForResume
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ComposerLH

ComposerLH(Tables tables,
           int leadsPerPart,
           int nParts,
           boolean tenorsTogether,
           boolean nicePartEnds,
           boolean ATW,
           int calls)
Method Detail

doCompose

void doCompose()
This one does does leadhead changes only (plus calls)
Overrides:
doCompose in class Composer

backtrack

int backtrack(int i)
LH only!
Overrides:
backtrack in class Composer

reduceMethodCounts

void reduceMethodCounts(int i)
LH search only!

calcMethodBalance

int calcMethodBalance()
This one for LH-only search! 100 = perfect balance of all methods in the array 0 = one or more missing
Overrides:
calcMethodBalance in class Composer