?? cut_info.java
字號:
/*
COMP 630C project
Re-implementation of R+ tree
Group member:
Cheng Wing Hang, Nelson
Cheung Kwok Ho, Steven
Ngai Ming Wai, Ryan
Shiu Hoi Nam
Tsui Chi Man
*/
import java.*;
// Storing the information after calculation of how to split
// the node and its cost
public class Cut_info {
float cost; // Partition cost.
float cut; // Point where partition takes place.
LIST S1, S2 ;
char dir;
public Cut_info()
{
}
// constructor
public Cut_info(float cost, float cut) {
this.cost = cost;
this.cut = cut;
}
// constructor
public Cut_info(float cost, float cut, CELL C1, CELL C2) {
this.cost = cost;
this.cut = cut;
S1 = new LIST(C1);
S2 = new LIST(C2);
}
// print where the cut takes place and its cost
public void print() {
System.out.println("Cost: " + this.cost + ", cut: " + this.cut);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -