本文整理汇总了Java中it.unimi.dsi.fastutil.longs.LongRBTreeSet类的典型用法代码示例。如果您正苦于以下问题:Java LongRBTreeSet类的具体用法?Java LongRBTreeSet怎么用?Java LongRBTreeSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LongRBTreeSet类属于it.unimi.dsi.fastutil.longs包,在下文中一共展示了LongRBTreeSet类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: exportTransitions130
import it.unimi.dsi.fastutil.longs.LongRBTreeSet; //导入依赖的package包/类
/**
* Export transitions into NUPN (since 1.3.0)
*
* @param ap
* @param vn
* @param bpnQueue
* @param tsQueue
* @throws XPathParseExceptionHuge
* @throws NavExceptionHuge
* @throws InterruptedException
* @throws XPathEvalExceptionHuge
*/
private void exportTransitions130(AutoPilotHuge ap, VTDNavHuge vn, BlockingQueue<String> bpnQueue)
throws XPathParseExceptionHuge, NavExceptionHuge, InterruptedException, XPathEvalExceptionHuge {
long nb = trId2bpnMap.size();
StringBuilder bpnsb = new StringBuilder();
bpnsb.append(TRANSITIONS).append(WS).append(HK).append(nb).append(WS).append(ZERO).append(DOTS).append(nb - 1L)
.append(NL);
bpnQueue.put(bpnsb.toString());
bpnsb.delete(0, bpnsb.length());
LongCollection allTr = new LongRBTreeSet(trId2bpnMap.values());
for (long trId : allTr) {
bpnsb.append(T).append(trId);
buildConnectedPlaces2Transition(bpnsb, trId, tr2InPlacesMap);
buildConnectedPlaces2Transition(bpnsb, trId, tr2OutPlacesMap);
bpnsb.append(NL);
bpnQueue.put(bpnsb.toString());
bpnsb.delete(0, bpnsb.length());
}
bpnsb.delete(0, bpnsb.length());
bpnsb = null;
}