当前位置: 首页>>代码示例>>Java>>正文


Java RefexVersionBI.getAssemblageNid方法代码示例

本文整理汇总了Java中org.ihtsdo.otf.tcc.api.refex.RefexVersionBI.getAssemblageNid方法的典型用法代码示例。如果您正苦于以下问题:Java RefexVersionBI.getAssemblageNid方法的具体用法?Java RefexVersionBI.getAssemblageNid怎么用?Java RefexVersionBI.getAssemblageNid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.ihtsdo.otf.tcc.api.refex.RefexVersionBI的用法示例。


在下文中一共展示了RefexVersionBI.getAssemblageNid方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isAcceptableTerm

import org.ihtsdo.otf.tcc.api.refex.RefexVersionBI; //导入方法依赖的package包/类
private static boolean isAcceptableTerm(DescriptionVersionBI<?> d) {
	try {
        for (RefexVersionBI<?> refex : d.getRefexMembersActive(OTFUtility.getViewCoordinate())) {
            if (refex.getAssemblageNid() == langDropDown.getSelectionModel().getSelectedItem().getNid()) {
                RefexNidVersionBI<?> langRefex = (RefexNidVersionBI<?>) refex;

                if ((langRefex.getNid1() == ReferenceConcepts.ACCEPTABLE_ACCEPTABILITY.getNid()) || 
            		(langRefex.getNid1() == SnomedMetadataRf2.ACCEPTABLE_RF2.getNid())) {
					acceptRefexMap .put(d.getNid(), langRefex);
                	return true;
                }
            }
        }
	} catch (Exception e) {
		AppContext.getCommonDialogs().showErrorDialog("Can't identify Preferred/Acceptable value for description: " + d.getText(), e);
	}
       return false;
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:19,代码来源:PreferredAcceptabilityPrompt.java

示例2: gertPrefMember

import org.ihtsdo.otf.tcc.api.refex.RefexVersionBI; //导入方法依赖的package包/类
private static RefexNidVersionBI<?> gertPrefMember(DescriptionVersionBI<?> d) {
	try {
        for (RefexVersionBI<?> refex : d.getRefexMembersActive(OTFUtility.getViewCoordinate())) {
            if (refex.getAssemblageNid() == langDropDown.getSelectionModel().getSelectedItem().getNid()) {
                RefexNidVersionBI<?> langRefex = (RefexNidVersionBI<?>) refex;

                if ((langRefex.getNid1() == ReferenceConcepts.PREFERRED_ACCEPTABILITY_RF1.getNid()) || 
            		(langRefex.getNid1() == SnomedMetadataRf2.PREFERRED_RF2.getNid())) {
                	return langRefex;
                }
            }
        }
	} catch (Exception e) {
		AppContext.getCommonDialogs().showErrorDialog("Can't identify Preferred/Acceptable value for description: " + d.getText(), e);
	}
       return null;
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:18,代码来源:PreferredAcceptabilityPrompt.java

示例3: isUSLanguageRefex

import org.ihtsdo.otf.tcc.api.refex.RefexVersionBI; //导入方法依赖的package包/类
/**
 * Indicates whether or not US language refex is the case.
 *
 * @param desc the desc
 * @return <code>true</code> if so, <code>false</code> otherwise
 * @throws Exception the exception
 */
private boolean isUSLanguageRefex(DescriptionVersionBI<?> desc)
  throws Exception {
  for (RefexVersionBI<?> annotation : desc.getAnnotationsActive(OTFUtility
      .getViewCoordinate())) {
    if (annotation.getAssemblageNid() == Snomed.US_LANGUAGE_REFEX.getNid()) {
      return true;
    }
  }
  return false;
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:18,代码来源:OWLExporter.java

示例4: getAnnotations

import org.ihtsdo.otf.tcc.api.refex.RefexVersionBI; //导入方法依赖的package包/类
public static Set<RefexVersionBI<?>> getAnnotations(ComponentVersionBI comp) {
	Set<RefexVersionBI<?>> retSet = new HashSet<>();
	
	try {
		for (RefexVersionBI<?> annot : comp.getAnnotationsActive(OTFUtility.getViewCoordinate())) {
			if (annot.getAssemblageNid() != getSnomedAssemblageNid()) {
				retSet.add(annot);
			}
		}
	} catch (IOException e) {
		LOG.error("Unable to access annotations", e);
	}
	
	return retSet;
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:16,代码来源:ConceptViewerHelper.java

示例5: processMembers

import org.ihtsdo.otf.tcc.api.refex.RefexVersionBI; //导入方法依赖的package包/类
private void processMembers(RefexVersionBI<?> member, RefexVersionBI<?> previousMember, ConceptVersionBI refCompCon) throws IOException, ContradictionException {
	if (member.getAssemblageNid() == refsetNid_) {
		// Setup if Necessary
		//TODO (artf231876) The current code only works if every member has the same RefexType (and there is _no_ guarantee about that in the APIs.  
		//The entire column display of the tables needs to be reworked, as the columns that are displayed needs to be dynamically detected 
		//from the data in the table, so it can take into account multiple refex types.
		if (!rth_.isSetupFinished() && member.getRefexType() != RefexType.MEMBER) {
			rth_.finishTableSetup(member, isAnnotation, refsetRows, refCompCon, member.getAssemblageNid());
			refsetType = member.getRefexType();
		}

		// Have needed member, add to data
		RefsetInstance instance = RefsetInstanceAccessor.getInstance(refCompCon, member, previousMember, refsetType);
		data.add(instance);
	}

	// Search for member's annotations
	Collection<? extends RefexChronicleBI<?>> refAnnots = (activeOnly_ ? member.getAnnotationsActive(OTFUtility.getViewCoordinate()) : member.getAnnotations());
	for (RefexChronicleBI<?> annot : refAnnots) {
		List<RefexVersionBI<?>> annotVersions = new ArrayList<>();
		if (activeOnly_)
		{
			RefexVersionBI<?> version = (RefexVersionBI<?>) annot.getVersion(OTFUtility.getViewCoordinate());
			if (version.isActive()) {
				annotVersions.add(version);
			}
		}
		else {
			annotVersions.addAll((Collection<? extends RefexVersionBI<?>>) annot.getVersions());
		}
		
		RefexVersionBI<?> prevAnnotVersion = null;
		for (RefexVersionBI<?> annotVersion : annotVersions)
		{
			processMembers(annotVersion, prevAnnotVersion, refCompCon);
			
			prevAnnotVersion = annotVersion;
		}
	}
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:41,代码来源:RefsetViewController.java


注:本文中的org.ihtsdo.otf.tcc.api.refex.RefexVersionBI.getAssemblageNid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。