|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.MenuOwner
mesquite.lib.EmployerEmployee
mesquite.lib.MesquiteModule
mesquite.lib.duties.NumberForTaxon
mesquite.align.lib.AlignScoreForTaxonGen
public abstract class AlignScoreForTaxonGen
| Field Summary | |
|---|---|
protected PairwiseAligner |
aligner
|
protected int |
alphabetLength
|
protected MesquiteInteger |
comparisonTaxon
|
protected Taxa |
currentTaxa
|
protected MatrixSourceCoord |
matrixSourceTask
|
protected MCharactersDistribution |
observedStates
|
| Fields inherited from class mesquite.lib.MesquiteModule |
|---|
author, browserString, checkMethodsAtStartup, hiredAsDefaultInScripting, lastResult, lastResultString, logWindow, mesquiteDirectory, mesquiteDirectoryPath, mesquiteTrunk, moduleInfo, prefsDirectory, proj, textEdgeCompensationHeight, textEdgeCompensationWidth, totalFinalized, userDirectory |
| Fields inherited from class mesquite.lib.EmployerEmployee |
|---|
employees, employer, startupBailOut, stringPos, suppressHireQueries, totalCreated, totalDisposed, useOtherChoices |
| Fields inherited from interface mesquite.lib.MesquiteListener |
|---|
ANNOTATION_ADDED, ANNOTATION_CHANGED, ANNOTATION_DELETED, ASSOCIATED_CHANGED, BRANCHES_REARRANGED, BRANCHLENGTHS_CHANGED, COMMAND_CANCELLED, DATA_CHANGED, ELEMENT_CHANGED, ITEMS_ADDED, NAMES_CHANGED, OBJECT_DESTROYED, PARTS_ADDED, PARTS_CHANGED, PARTS_DELETED, PARTS_MOVED, SELECTION_CHANGED, TAXA_SUBSTITUTED, TEXTFIELD_EDITED, UNKNOWN, VALUE_CHANGED |
| Fields inherited from interface mesquite.lib.HNode |
|---|
MOUSEDOWN, MOUSEEXIT, MOUSEMOVE |
| Constructor Summary | |
|---|---|
AlignScoreForTaxonGen()
|
|
| Method Summary | |
|---|---|
void |
calculateNumber(Taxon taxon,
MesquiteNumber result,
MesquiteString resultString)
|
java.lang.Object |
doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
A request for the MesquiteModule to perform a command. |
void |
employeeParametersChanged(MesquiteModule employee,
MesquiteModule source,
Notification notification)
Generated by an employee calling its parametersChanged method. |
void |
employeeQuit(MesquiteModule employee)
Generated by an employee who quit. |
protected abstract void |
getAlignmentScore(DNAData data,
MCategoricalDistribution observedStates,
int it1,
int it2,
MesquiteNumber score)
|
CompatibilityTest |
getCompatibilityTest()
Returns CompatibilityTest so other modules know if this is compatible with some object. |
java.lang.String |
getExplanation()
returns an explanation of what the module does. |
java.lang.String |
getParameters()
returns current parameters, for logging etc.. |
abstract java.lang.String |
getScoreName()
|
Snapshot |
getSnapshot(MesquiteFile file)
Return Mesquite commands that will put the module (approximately) back into its current state. |
void |
initAligner()
|
void |
initialize(Taxa taxa)
Called to provoke any necessary initialization. |
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
int[][] |
modifyAlignmentCosts(int[][] defaultSubs)
Override if one wishes to modify the alignment costs away from the default. |
boolean |
queryReferenceTaxon()
|
boolean |
requestPrimaryChoice()
returns whether this module is requesting to appear as a primary choice |
boolean |
startJob(java.lang.String arguments,
java.lang.Object condition,
boolean hiredByName)
startJob is called automatically when an employee is hired. |
| Methods inherited from class mesquite.lib.duties.NumberForTaxon |
|---|
calculateNumber, calculateNumberInContext, getDutyClass, getDutyName, getNameOfValueCalculated, initialize, returnsMultipleValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mesquite.lib.duties.NumberForItem |
|---|
accumulateParameters, getName, getNameAndParameters |
| Field Detail |
|---|
protected MatrixSourceCoord matrixSourceTask
protected Taxa currentTaxa
protected MCharactersDistribution observedStates
protected PairwiseAligner aligner
protected int alphabetLength
protected MesquiteInteger comparisonTaxon
| Constructor Detail |
|---|
public AlignScoreForTaxonGen()
| Method Detail |
|---|
public boolean startJob(java.lang.String arguments,
java.lang.Object condition,
boolean hiredByName)
MesquiteModuleThe MesquiteModule should override this method, to add code to initialize things it needs, and to hire relevant necessary employees. startJob must return true if the module was successfully started; false otherwise. Thus, if the module needs a data matrix but the file has none, it returns false and the hiring process is undone.
Most modules will ignore the arguments and condition.
startJob in class MesquiteModulepublic Snapshot getSnapshot(MesquiteFile file)
MesquiteModule
getSnapshot in class MesquiteModulepublic void employeeQuit(MesquiteModule employee)
employeeQuit in class MesquiteModulepublic int[][] modifyAlignmentCosts(int[][] defaultSubs)
public void initAligner()
public boolean requestPrimaryChoice()
requestPrimaryChoice in class MesquiteModulepublic void initialize(Taxa taxa)
initialize in class NumberForTaxon
public void calculateNumber(Taxon taxon,
MesquiteNumber result,
MesquiteString resultString)
calculateNumber in class NumberForTaxon
protected abstract void getAlignmentScore(DNAData data,
MCategoricalDistribution observedStates,
int it1,
int it2,
MesquiteNumber score)
public boolean queryReferenceTaxon()
public java.lang.Object doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
MesquiteModule
doCommand in interface CommandabledoCommand in class MesquiteModulepublic CompatibilityTest getCompatibilityTest()
getCompatibilityTest in class MesquiteModule
public void employeeParametersChanged(MesquiteModule employee,
MesquiteModule source,
Notification notification)
MesquiteModule
employeeParametersChanged in class MesquiteModulepublic abstract java.lang.String getScoreName()
public boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModulepublic java.lang.String getParameters()
MesquiteModule
getParameters in interface NumberForItemgetParameters in class MesquiteModulepublic java.lang.String getExplanation()
getExplanation in interface ExplainablegetExplanation in class MesquiteModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||