當前位置: 首頁>>代碼示例>>Java>>正文


Java ComponentDefinition.containsType方法代碼示例

本文整理匯總了Java中org.sbolstandard.core2.ComponentDefinition.containsType方法的典型用法代碼示例。如果您正苦於以下問題:Java ComponentDefinition.containsType方法的具體用法?Java ComponentDefinition.containsType怎麽用?Java ComponentDefinition.containsType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.sbolstandard.core2.ComponentDefinition的用法示例。


在下文中一共展示了ComponentDefinition.containsType方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: isSpeciesDefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is a valid SBML species.
 * 
 * @param compDef - The SBOL ComponentDefinition to check if it is a valid SBML species
 * @return True if the given ComponentDefinition is a valid SBML species
 */
private static boolean isSpeciesDefinition(ComponentDefinition compDef) {
	return isComplexDefinition(compDef)
			|| isProteinDefinition(compDef)
			|| isRNADefinition(compDef)
			//				|| isTFDefinition(compDef)
			|| isSmallMoleculeDefinition(compDef)
			|| compDef.containsType(ComponentDefinition.EFFECTOR);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:15,代碼來源:SBOL2SBML.java

示例2: isDNADefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is a valid DNA species.
 * 
 * @param compDef - The SBOL ComponentDefinition to check if it is a valid DNA species.
 * @return True if the given ComponentDefinition is a valid DNA species
 */
private static boolean isDNADefinition(ComponentDefinition compDef) {
	return compDef.containsType(ComponentDefinition.DNA);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:10,代碼來源:SBOL2SBML.java

示例3: isProteinDefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is a valid protein species.
 * 
 * @param compDef - The SBOL ComponentDefinition to check if it is a valid protein species.
 * @return True if the given ComponentDefinition is a valid protein species
 */
private static boolean isProteinDefinition(ComponentDefinition compDef) {
	return compDef.containsType(ComponentDefinition.PROTEIN);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:10,代碼來源:SBOL2SBML.java

示例4: isRNADefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is a valid RNA species.
 * 
 * @param compDef - The SBOL ComponentDefinition to check if it is a valid RNA species.
 * @return True if the given ComponentDefinition is a valid RNA species
 */
private static boolean isRNADefinition(ComponentDefinition compDef) {
	return compDef.containsType(ComponentDefinition.RNA);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:10,代碼來源:SBOL2SBML.java

示例5: isComplexDefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is Complex SBML species.
 * 
 * @param compDef - The ComponentDefinition to determine if it is a Complex SBML species.
 * @return True if the given ComponentDefinition is Complex SBML species. False otherwise. 
 */
private static boolean isComplexDefinition(ComponentDefinition compDef) {
	return compDef.containsType(ComponentDefinition.COMPLEX);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:10,代碼來源:SBOL2SBML.java

示例6: isSmallMoleculeDefinition

import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
 * Determine if the given SBOL ComponentDefinition is Small Molecule SBML species.
 * 
 * @param compDef - The ComponentDefinition to determine if it is a Small Molecule SBML species.
 * @return True if the given ComponentDefinition is Small Molecule SBML species. False otherwise. 
 */
private static boolean isSmallMoleculeDefinition(ComponentDefinition compDef) {
	return compDef.containsType(ComponentDefinition.SMALL_MOLECULE);
}
 
開發者ID:MyersResearchGroup,項目名稱:iBioSim,代碼行數:10,代碼來源:SBOL2SBML.java


注:本文中的org.sbolstandard.core2.ComponentDefinition.containsType方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。