本文整理汇总了Java中org.sbml.jsbml.ModifierSpeciesReference.getSBOTerm方法的典型用法代码示例。如果您正苦于以下问题:Java ModifierSpeciesReference.getSBOTerm方法的具体用法?Java ModifierSpeciesReference.getSBOTerm怎么用?Java ModifierSpeciesReference.getSBOTerm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.sbml.jsbml.ModifierSpeciesReference
的用法示例。
在下文中一共展示了ModifierSpeciesReference.getSBOTerm方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isPromoter
import org.sbml.jsbml.ModifierSpeciesReference; //导入方法依赖的package包/类
public static boolean isPromoter(ModifierSpeciesReference mod) {
if (AnnotationUtility.checkObsoleteAnnotation(mod,"promoter")) {
mod.setSBOTerm(GlobalConstants.SBO_PROMOTER_MODIFIER);
AnnotationUtility.removeObsoleteAnnotation(mod);
return true;
} else if (mod.isSetSBOTerm()) {
if (mod.getSBOTerm() == GlobalConstants.SBO_PROMOTER) {
mod.setSBOTerm(GlobalConstants.SBO_PROMOTER_MODIFIER);
return true;
} else if (mod.getSBOTerm() == GlobalConstants.SBO_PROMOTER_MODIFIER) {
return true;
}
} else if (isPromoterSpecies(mod.getSpeciesInstance())) {
mod.setSBOTerm(GlobalConstants.SBO_PROMOTER_MODIFIER);
return true;
}
return false;
}
示例2: isRegulator
import org.sbml.jsbml.ModifierSpeciesReference; //导入方法依赖的package包/类
public static boolean isRegulator(ModifierSpeciesReference modifier) {
if (modifier!=null) {
if (modifier.isSetSBOTerm()) {
if (modifier.getSBOTerm()==GlobalConstants.SBO_REGULATION) {
modifier.setSBOTerm(GlobalConstants.SBO_DUAL_ACTIVITY);
return true;
} else if (modifier.getSBOTerm()==GlobalConstants.SBO_DUAL_ACTIVITY) {
return true;
}
}
if (AnnotationUtility.checkObsoleteAnnotation(modifier,GlobalConstants.REGULATION)) {
modifier.setSBOTerm(GlobalConstants.SBO_DUAL_ACTIVITY);
AnnotationUtility.removeObsoleteAnnotation(modifier);
return true;
} else if (AnnotationUtility.checkObsoleteAnnotation(modifier,"promoter")) {
AnnotationUtility.removeObsoleteAnnotation(modifier);
return false;
}
}
return false;
}
示例3: isActivator
import org.sbml.jsbml.ModifierSpeciesReference; //导入方法依赖的package包/类
public static boolean isActivator(ModifierSpeciesReference modifier) {
if (modifier.isSetSBOTerm()) {
if (modifier.getSBOTerm()==GlobalConstants.SBO_ACTIVATION) return true;
}
if (AnnotationUtility.checkObsoleteAnnotation(modifier,GlobalConstants.ACTIVATION)) {
modifier.setSBOTerm(GlobalConstants.SBO_ACTIVATION);
AnnotationUtility.removeObsoleteAnnotation(modifier);
return true;
}
return false;
}
示例4: isRepressor
import org.sbml.jsbml.ModifierSpeciesReference; //导入方法依赖的package包/类
public static boolean isRepressor(ModifierSpeciesReference modifier) {
if (modifier.isSetSBOTerm()) {
if (modifier.getSBOTerm()==GlobalConstants.SBO_REPRESSION) return true;
}
if (AnnotationUtility.checkObsoleteAnnotation(modifier,GlobalConstants.REPRESSION)) {
modifier.setSBOTerm(GlobalConstants.SBO_REPRESSION);
AnnotationUtility.removeObsoleteAnnotation(modifier);
return true;
}
return false;
}
示例5: isNeutral
import org.sbml.jsbml.ModifierSpeciesReference; //导入方法依赖的package包/类
public static boolean isNeutral(ModifierSpeciesReference modifier) {
if (modifier.isSetSBOTerm()) {
if (modifier.getSBOTerm()==GlobalConstants.SBO_NEUTRAL) return true;
}
if (AnnotationUtility.checkObsoleteAnnotation(modifier,GlobalConstants.NOINFLUENCE)) {
modifier.setSBOTerm(GlobalConstants.SBO_NEUTRAL);
AnnotationUtility.removeObsoleteAnnotation(modifier);
return true;
}
return false;
}