|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.Postprocess
statalign.postprocess.TreeVisualizer
statalign.postprocess.plugins.CurrentTreeVisualizer
public class CurrentTreeVisualizer
Field Summary |
---|
Fields inherited from class statalign.postprocess.Postprocess |
---|
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show |
Constructor Summary | |
---|---|
CurrentTreeVisualizer()
|
Method Summary | |
---|---|
void |
afterLastSample()
This function is called after the MCMC runs. |
void |
beforeFirstSample(InputData input)
Called before MCMC start. |
java.lang.String |
getFileExtension()
Returns default file extension that is to appended to the input file name to get the file this plugin is writing into. |
javax.swing.Icon |
getIcon()
|
java.lang.String |
getTabName()
|
double |
getTabOrder()
Specifies the order of the tab for this plugin in the GUI. |
java.lang.String |
getTip()
Returns with the tip information (shown when the mouse cursor is moved over the label of the tabulated panel) |
void |
init(ModelExtManager manager)
Called by PostprocessManager after setting the Postprocess.show field to allow initialisation,
possibly involving GUI (toolbar etc.) |
void |
newPeek(State state)
Allows peeking into the Markov chain before actual sampling begins. |
void |
newSample(State state,
int no,
int total)
This function is called when we sample from the Markov chain. |
Methods inherited from class statalign.postprocess.TreeVisualizer |
---|
getJPanel, getToolBarItems, init, refreshGUI, setSampling |
Methods inherited from class statalign.postprocess.Postprocess |
---|
addTrack, getDependences, getModExtPlugins, getTracks, newSample, newStep, refToDependences, reloadPanel, setSelected |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentTreeVisualizer()
Method Detail |
---|
public void init(ModelExtManager manager)
Postprocess
PostprocessManager
after setting the Postprocess.show
field to allow initialisation,
possibly involving GUI (toolbar etc.)
init
in class Postprocess
public javax.swing.Icon getIcon()
getIcon
in class Postprocess
public java.lang.String getTabName()
getTabName
in class Postprocess
public java.lang.String getTip()
Postprocess
getTip
in class Postprocess
public double getTabOrder()
Postprocess
E.g. we probably always want the "sequence input"-tab to appear first and therefore it returns a 1.0d here. The "current alignment"-tab returns 2.0d here and so if we want to make a tab get ordered between the "sequence input" and the "current alignment"-tabs we just make that plugin return 1.5d or something similar here. By default tabs get ordered last.
getTabOrder
in class Postprocess
public void newPeek(State state)
Postprocess
Postprocess.newSample(State, int, int)
. Unlike that method, this one is called both
during and after the burn-in period.
newPeek
in class Postprocess
state
- A State
object representing the current state of the chainpublic java.lang.String getFileExtension()
Postprocess
getFileExtension
in class Postprocess
public void beforeFirstSample(InputData input)
Postprocess
beforeFirstSample
in class TreeVisualizer
public void newSample(State state, int no, int total)
Postprocess
Postprocess.newPeek(State state)
,
this method is only called after the burn-in period.
newSample
in class Postprocess
state
- A State
object representing the current state of the chainno
- The number of the current sampletotal
- The number of the total samplespublic void afterLastSample()
Postprocess
afterLastSample
in class Postprocess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |