|
|||||||||
| 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.CharacterSimulator
public abstract class CharacterSimulator
Simulates characters.
| Field Summary |
|---|
| 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 | |
|---|---|
CharacterSimulator()
|
|
| Method Summary | |
|---|---|
int |
getDefaultNumChars()
Returns default number of characters to simulate. |
java.lang.Class |
getDutyClass()
Returns duty Class the module belongs to; should be defined not by module itself but by abstract class representing duty |
java.lang.String |
getDutyName()
Returns the name of the duty; set by the duty-defining library classes. |
java.lang.String |
getFunctionIconPath()
returns an icon to accompany the explanation of what the module does. |
int |
getMaximumNumChars(Taxa taxa)
Returns maximum number of characters to simulate. |
abstract CharacterDistribution |
getSimulatedCharacter(CharacterDistribution statesAtTips,
Tree tree,
MesquiteLong seed)
Returns a character for the terminal taxa (place in passed CharacterDistribution if it is non-null, and return the same reference, or create new one otherwise). |
abstract CharacterHistory |
getSimulatedHistory(CharacterHistory statesAtNodes,
Tree tree,
MesquiteLong seed)
Returns a character for all the nodes in the tree (place in passed CharacterDistribution if it is non-null, and return the same reference, or create new one otherwise). |
abstract java.lang.Class |
getStateClass()
Indicates the type of character created (e.g., "CategoricalState") |
void |
initialize(Taxa taxa)
Does any needed initializations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterSimulator()
| Method Detail |
|---|
public java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class MesquiteModulepublic java.lang.String getDutyName()
MesquiteModule
getDutyName in class MesquiteModulepublic java.lang.String getFunctionIconPath()
MesquiteModule
getFunctionIconPath in interface FunctionExplainablegetFunctionIconPath in class MesquiteModulepublic abstract java.lang.Class getStateClass()
public void initialize(Taxa taxa)
public abstract CharacterDistribution getSimulatedCharacter(CharacterDistribution statesAtTips,
Tree tree,
MesquiteLong seed)
public abstract CharacterHistory getSimulatedHistory(CharacterHistory statesAtNodes,
Tree tree,
MesquiteLong seed)
public int getMaximumNumChars(Taxa taxa)
public int getDefaultNumChars()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||