| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPolyLine.Realizer
public class Realizer
A class representing Realizer DataSturcture.
 This class is an object to represent a realizer. This object is initializes 
with a text files. The format is given below
row 1 -> number of nodes in the realizer
row 2 
to
row n+1 -> 
row n+2->
row n+3 -> root of t0 
row n+4
to
row n+6->ccw postordering of id with space given
row n+7->space
example file:
15
14 -1 -1 -1
5 -1 -1 -1
6 -1 -1 -1
0 14 11 4
1 0 11 4
2 1 11 3
3 1 11 4
4 14 11 5
7 12 6 11
8 7 6 11
9 8 6 11
10 9 6 11
11 14 6 5
12 13 6 11
13 14 6 11
14 6 5
10 9 8 7 12 13 11 2 3 1 0 4 14 
4 3 2 1 0 11 10 9 8 7 12 13 6 
0 1 2 3 4 13 12 7 8 9 10 11 5 
init method inputs the file by BufferedReader and FileReader
Copyright: Copyright (c) 2008
Company: Bangladesh University of engineering and technology
| Field Summary | |
|---|---|
(package private)  java.io.BufferedReader | 
br
Used to read the "file" object  | 
(package private)  int[][] | 
ccwPostOrder
a 2D array where each row represents a tree's counter clockwise postordering.  | 
(package private)  java.io.File | 
file
A native File object which is later initializes to the input text file  | 
(package private)  java.io.FileReader | 
fr
Used to read the "file" object  | 
(package private)  java.util.LinkedList<java.lang.Integer> | 
leafT0
Contains the list of all leafs in tree T0.  | 
(package private)  RealizerNode[] | 
node
Array of Realizer nodes.  | 
(package private)  int[][] | 
parentList
A 2D array of integer where every row represents a vertex and every column represents which tree.  | 
(package private)  int[] | 
root
This array contains only the root ids.  | 
| Constructor Summary | |
|---|---|
Realizer(java.io.File file)
Construcctor .  | 
|
| Method Summary | |
|---|---|
 void | 
fixChild(RealizerNode u)
While doing the weak stratification .  | 
 int[][] | 
getCCWPostOrder()
 | 
 java.util.LinkedList<java.lang.Integer> | 
getLeafT0()
 | 
 RealizerNode[] | 
getNodes()
 | 
 int[] | 
getRoot()
 | 
 void | 
init()
This method initializes all the data structures from the input file  | 
(package private)  boolean | 
isLeafT0(int val)
Checks whether the id is a leaf of T0 tree.  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
java.io.File file
int[][] parentList
java.io.BufferedReader br
java.io.FileReader fr
RealizerNode[] node
int[] root
int[][] ccwPostOrder
java.util.LinkedList<java.lang.Integer> leafT0
| Constructor Detail | 
|---|
public Realizer(java.io.File file)
| Method Detail | 
|---|
public void fixChild(RealizerNode u)
u - the RealizerNode object who's child max layer value to be adjusted.public int[][] getCCWPostOrder()
public int[] getRoot()
public RealizerNode[] getNodes()
public java.util.LinkedList<java.lang.Integer> getLeafT0()
public void init()
boolean isLeafT0(int val)
val - the id of the node which is going to be checked is a leaf of tree_0 or not.public java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||