91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 96KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-07
  • 語言: Java
  • 標簽: java??R樹??

資源簡介

R樹是目前應(yīng)用最為廣泛的一種空間索引結(jié)構(gòu)。這是用java實現(xiàn)的R樹,內(nèi)有相關(guān)文檔

資源截圖

代碼片段和文件信息

package?rtree;

import?java.util.*;
import?java.io.*;

/**
?*?Implements?basic?functions?of?Node?interface.?Also?implements?splitting?functions.
?*?


?*?Created:?Tue?May?18?15:57:56?1999
?*?


?*?@author?Hadjieleftheriou?Marios
?*?@version?1.1
?*/
public?abstract?class?AbstractNode?implements?Node?{
????/**?Level?of?this?node.?Leaves?always?have?a?level?equal?to?0.?*/
????protected?int?level;

????/**?Parent?of?all?nodes.?*/
????protected?transient?RTree?tree;

????/**?The?pageNumber?where?the?parent?of?this?node?is?stored.?*/
????protected?int?parent;

????/**?The?pageNumber?where?this?node?is?stored.?*/
????protected?int?pageNumber;

????/**
?????*?All?node?data?are?stored?into?this?array.?It?must?have?a?size?of?nodeCapacity?+?1?to?hold
?????*?all?data?plus?an?overflow?HyperCube?when?the?node?must?be?split.
?????*/
????protected?HyperCube[]?data;

????/**
?????*?Holds?the?pageNumbers?containing?the?children?of?this?node.?Always?has?same?size?with?the?data?array.
?????*?If?this?is?a?Leaf?node?than?all?branches?should?point?to?the?real?data?objects.
?????*/
????protected?int[]?branches;

????/**?How?much?space?is?used?up?into?this?node.?If?equal?to?nodeCapacity?then?node?is?full.?*/
????protected?int?usedSpace;

//
//?Initialization.
//

????protected?AbstractNode(RTree?tree?int?parent?int?pageNumber?int?level)?{
this.parent?=?parent;
this.tree?=?tree;
this.pageNumber?=?pageNumber;
this.level?=?level;
data?=?new?HyperCube[tree.getNodeCapacity()+1];
branches?=?new?int[tree.getNodeCapacity()+1];
usedSpace?=?0;
????}

//
//?Node?interface.
//

????/**
?????*?Returns?the?node?level.?Always?zero?for?leaf?nodes.
?????*
?????*?@return?Level?of?node.
?????*/
????public?int?getLevel()?{
return?level;
????}

????/**
?????*??Returns?true?if?this?node?is?the?root?node.
?????*/
????public?boolean?isRoot()?{
return?(parent?==?RTree.NIL);
????}

????/**
?????*??Returns?true?if?this?node?is?an?Index.?Root?node?is?an?Index?too?unless?it?is?a?Leaf.
?????*/
????public?boolean?isIndex()?{
return?(level?!=?0);
????}

????/**
?????*?Returns?true?if?this?node?is?a?Leaf.?Root?may?be?a?Leaf?too.
?????*/
????public?boolean?isLeaf()?{
return?(level?==?0);
????}

????/**
?????*?Returns?the?mbb?of?all?HyperCubes?present?in?this?node.
?????*
?????*?@return?A?new?HyperCube?object?representing?the?mbb?of?this?node.
?????*/
????public?HyperCube?getNodeMbb()?{
if?(usedSpace?>?0)?{
????HyperCube[]?h?=?new?HyperCube[usedSpace];
????System.arraycopy(data?0?h?0?usedSpace);
????return?HyperCube.getUnionMbb(h);
}?else?{
????return?new?HyperCube(new?Point(new?float[]?{0?0})?new?Point(new?float[]?{0?0}));
}
????}

????/**
?????*?Returns?a?unique?id?for?this?node.?The?page?number?is?unique?for?every?node?but
?????*?it?doen‘t?signify?anything?about?where?in?the?path?from?the?root?this?node?lies?it?is?random.
?????*?This?function?returns?a?point?separated?list?of?page?numbers?from?the?root?up?to?the
?????*?current?node.?It?is?expensive?though


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????13639??1999-12-07?13:08??AbstractNode.java
?????文件????????3657??1999-12-07?13:03??CachedPersistentPageFile.java
?????文件?????????183??1999-12-07?10:21??Comparator.java
?????文件?????????399??1999-12-07?16:07??Data.java
?????目錄???????????0??1999-12-10?11:43??doc\
?????文件??????????98??1999-10-23?20:09??doc.bat
?????文件????????1660??1999-12-10?11:43??doc\allclasses-frame.html
?????文件????????3518??1999-12-10?11:43??doc\deprecated-list.html
?????文件????????7292??1999-12-10?11:43??doc\help-doc.html
?????文件???????36133??1999-12-10?11:43??doc\index-all.html
?????文件?????????660??1999-12-10?11:45??doc\index.html
?????文件????????5208??1999-12-10?11:43??doc\overview-tree.html
?????文件???????????0??1999-12-10?11:43??doc\package-list
?????文件?????????684??1999-12-10?11:43??doc\packages.html
?????目錄???????????0??1999-12-10?11:43??doc\rtree\
?????文件???????27649??1999-12-10?11:43??doc\rtree\AbstractNode.html
?????文件???????13257??1999-12-10?11:43??doc\rtree\CachedPersistentPageFile.html
?????目錄???????????0??1999-12-10?11:43??doc\rtree\class-use\
?????文件???????17231??1999-12-10?11:43??doc\rtree\class-use\AbstractNode.html
?????文件????????3911??1999-12-10?11:43??doc\rtree\class-use\CachedPersistentPageFile.html
?????文件????????4802??1999-12-10?11:43??doc\rtree\class-use\Comparator.html
?????文件????????3771??1999-12-10?11:43??doc\rtree\class-use\Data.html
?????文件???????19513??1999-12-10?11:43??doc\rtree\class-use\HyperCube.html
?????文件????????3778??1999-12-10?11:43??doc\rtree\class-use\Index.html
?????文件????????7150??1999-12-10?11:43??doc\rtree\class-use\Leaf.html
?????文件????????3841??1999-12-10?11:43??doc\rtree\class-use\MemoryPageFile.html
?????文件????????5251??1999-12-10?11:43??doc\rtree\class-use\Node.html
?????文件????????9618??1999-12-10?11:43??doc\rtree\class-use\PageFaultError.html
?????文件????????7312??1999-12-10?11:43??doc\rtree\class-use\PageFile.html
?????文件????????4887??1999-12-10?11:43??doc\rtree\class-use\PersistentPageFile.html
?????文件????????9243??1999-12-10?11:43??doc\rtree\class-use\Point.html
............此處省略29個文件信息

評論

共有 條評論