|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.Postprocess
statalign.postprocess.plugins.Entropy
public class Entropy
This is the implementation of the postprocess that handles entropy.
Field Summary | |
---|---|
static boolean |
allowed
|
java.util.ArrayList<EntropyContainer> |
entropyList
|
java.lang.String |
title
|
Fields inherited from class statalign.postprocess.Postprocess |
---|
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show |
Constructor Summary | |
---|---|
Entropy()
It constructs a postprocess handler that is screenable (=can be shown on the GUI), outputable (= can be written into the log file) and postprocessable (= can generate its own output file). |
Method Summary | |
---|---|
void |
afterLastSample()
It writes the sampled loglikelihood values into a separate file. |
void |
beforeFirstSample(InputData input)
Initialises the graphical interface. |
java.lang.String[] |
getDependences()
Override this and return an array of full-qualified class names of the plugins this plugin depends on. |
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()
Returns the icon generated from the picture in file icons/loglikelihood1.gif. |
javax.swing.JPanel |
getJPanel()
It generates a panel and returns it. |
java.lang.String |
getTabName()
Returns the name of the postprocess, 'Loglikelihood'. |
double |
getTabOrder()
Specifies the order of the tab for this plugin in the GUI. |
java.lang.String |
getTip()
Returns the tip of the tabulated panel 'Log-likelihood trace' (shown when mouse is moved over the panel) |
void |
newSample(State state,
int no,
int total)
Writes the loglikelihoods into a logfile, if sampling mode is switched on. |
void |
refToDependences(Postprocess[] plugins)
Override this to get access to instances of the plugins your plugin depends on. |
void |
reloadPanel()
Reinitializes panel to accommodate a new GUI |
void |
setSampling(boolean enabled)
It switches on and off the sampling mode. |
Methods inherited from class statalign.postprocess.Postprocess |
---|
addTrack, getModExtPlugins, getToolBarItems, getTracks, init, newPeek, newSample, newStep, setSelected |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String title
public java.util.ArrayList<EntropyContainer> entropyList
public static boolean allowed
Constructor Detail |
---|
public Entropy()
Method Detail |
---|
public java.lang.String getTabName()
getTabName
in class Postprocess
public javax.swing.Icon getIcon()
getIcon
in class Postprocess
public javax.swing.JPanel getJPanel()
getJPanel
in class Postprocess
public void reloadPanel()
Postprocess
reloadPanel
in class Postprocess
public java.lang.String getTip()
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 java.lang.String getFileExtension()
Postprocess
getFileExtension
in class Postprocess
public java.lang.String[] getDependences()
Postprocess
getDependences
in class Postprocess
public void refToDependences(Postprocess[] plugins)
Postprocess
refToDependences
in class Postprocess
plugins
- reference to Postprocess objects in the order they are specified
in getDependences() or null if it returns nullpublic void newSample(State state, int no, int total)
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 beforeFirstSample(InputData input)
beforeFirstSample
in class Postprocess
public void afterLastSample()
afterLastSample
in class Postprocess
public void setSampling(boolean enabled)
setSampling
in class Postprocess
enabled
- Set it true if you need samples.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |