本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.getLinksByStatus()
方法的一些代码示例,展示了Alignment.getLinksByStatus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.getLinksByStatus()
方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称:Alignment
方法名:getLinksByStatus
暂无
代码示例来源:origin: usc-isi-i2/Web-Karma
private void updateLinksPreferredByUI() {
if (this.steinerTree == null)
return;
// Change the status of previously preferred links to normal
Set<LabeledLink> linksInPreviousTree = this.getLinksByStatus(LinkStatus.PreferredByUI);
Set<LabeledLink> linksForcedByUser = this.getLinksByStatus(LinkStatus.ForcedByUser);
if (linksInPreviousTree != null) {
LabeledLink[] links = linksInPreviousTree.toArray(new LabeledLink[0]);
for (LabeledLink link : links)
this.graphBuilder.changeLinkStatus(link, LinkStatus.Normal);
}
for (LabeledLink link: this.steinerTree.edgeSet()) {
if (linksForcedByUser == null || !linksForcedByUser.contains(link)) {
this.graphBuilder.changeLinkStatus(link, LinkStatus.PreferredByUI);
logger.debug("link " + link.getId() + " has been added to preferred UI links.");
}
}
}
代码示例来源:origin: usc-isi-i2/Web-Karma
if (this.getLinksByStatus(LinkStatus.ForcedByUser) != null) {
for (LabeledLink link: this.getLinksByStatus(LinkStatus.ForcedByUser))
logger.debug("\t" + link.getId());
代码示例来源:origin: usc-isi-i2/Web-Karma
TreePostProcess treePostProcess = new TreePostProcess(this.graphBuilder, tree, getLinksByStatus(LinkStatus.ForcedByUser), true);
代码示例来源:origin: usc-isi-i2/Web-Karma
Set<LabeledLink> linksForcedByUser = this.getLinksByStatus(LinkStatus.ForcedByUser);
if (linksForcedByUser != null) {
for (LabeledLink link : linksForcedByUser) {
代码示例来源:origin: usc-isi-i2/Web-Karma
private void addForcedLinks() {
Set<LabeledLink> forcedLinks = getLinksByStatus(LinkStatus.ForcedByUser);
if (forcedLinks != null)
for (LabeledLink link : forcedLinks) {
if (!this.steinerTree.containsEdge(link)) {
if (!this.steinerTree.containsVertex(link.getSource())) {
this.steinerTree.addVertex(link.getSource());
}
if (!this.steinerTree.containsVertex(link.getTarget())) {
this.steinerTree.addVertex(link.getTarget());
}
this.steinerTree.addEdge(link.getSource(), link.getTarget(), link);
}
}
}
代码示例来源:origin: usc-isi-i2/Web-Karma
modelLearner = new ModelLearner(alignment.getGraphBuilder(), steinerNodes);
else
modelLearner = new ModelLearner(ontologyManager, alignment.getLinksByStatus(LinkStatus.ForcedByUser), steinerNodes);
内容来源于网络,如有侵权,请联系作者删除!