本文整理匯總了Java中mesquite.categ.lib.DNAState類的典型用法代碼示例。如果您正苦於以下問題:Java DNAState類的具體用法?Java DNAState怎麽用?Java DNAState使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DNAState類屬於mesquite.categ.lib包,在下文中一共展示了DNAState類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setCharacterDistribution
import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public void setCharacterDistribution(CharacterStatesHolder[] cStates) {
super.setCharacterDistribution(cStates);
numChars= cStates.length;
for (int c=0;c<numChars;c++){
//This expansion costs a lot of time. Perhaps use allStates based calculations instead of states[] based calculations?
if (DNAState.class == cStates[c].getStateClass() || DNAState.class.isAssignableFrom(cStates[c].getStateClass())) {
maxState[c] = 3;
if (maxState[c]>maxStateDefined[c])
maxState[c] = maxStateDefined[c];
allStates[c] = CategoricalState.span(0,maxState[c]);
}
else {
allStates[c] = ((CategoricalDistribution)cStates[c]).getAllStates();
maxState[c] = CategoricalState.maximum(allStates[c]);
if (maxState[c]>maxStateDefined[c]) {
maxState[c] = maxStateDefined[c];
allStates[c] = allStates[c] & CategoricalState.span(0,maxState[c]);
}
else if (maxState[c] < 1) {
allStates[c] = CategoricalState.span(0,1);
maxState[c] = 1;
}
}
}
}
示例2: canExportProject
import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public boolean canExportProject(MesquiteProject project) {
return (project.getNumberCharMatricesVisible(DNAState.class) > 0) ;
}
示例3: findDataToExport
import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public CharacterData findDataToExport(MesquiteFile file, String arguments) {
return getProject().chooseData(containerOfModule(), file, null, DNAState.class, "Select data to export");
}
示例4: getAcceptedClasses
import mesquite.categ.lib.DNAState; //導入依賴的package包/類
public Class[] getAcceptedClasses() {
return new Class[] {CategoricalState.class,ProteinState.class, DNAState.class, ContinuousState.class};
}