Debian Codegraph @

src/h/ST_RTree.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package h;
47
48 import smetana.core.UnsupportedStructAndPtr;
49 import smetana.core.__ptr__;
50 import smetana.core.amiga.StarStruct;
51
52 public class ST_RTree extends UnsupportedStructAndPtr {
53
54 private final StarStruct parent;
55
56 public ST_RTree() {
57 this(null);
58 }
59
60 public ST_RTree(StarStruct parent) {
61 this.parent = parent;
62 }
63
64 // "struct RTree",
65 // "{",
66 public ST_Node_t___ root;
67 // "Node_t *root",
68 public final ST_SplitQ_t split = new ST_SplitQ_t(this);
69 public int MinFill;
70 // "long ElapsedTime",
71 // "float UserTime, SystemTime",
72 public int Deleting;
73 public int StatFlag;
74 // "int InsertCount",
75 // "int DeleteCount",
76 // "int ReInsertCount",
77 // "int InSplitCount",
78 // "int DeSplitCount",
79 public int ElimCount;
80 // "int EvalCount",
81 // "int InTouchCount",
82 // "int DeTouchCount",
83 public int SeTouchCount;
84 // "int CallCount",
85 // "float SplitMeritSum",
86 public int RectCount;
87 public int NodeCount;
88 public int LeafCount, NonLeafCount;
89
90 public int EntryCount;
91 // "int SearchCount",
92 // "int HitCount",
93 // "}");
94
95 @Override
96 public __ptr__ setPtr(String fieldName, __ptr__ newData) {
97 if (fieldName.equals("root")) {
98 this.root = (ST_Node_t___) newData;
99 return root;
100 }
101 return super.setPtr(fieldName, newData);
102 }
103
104 @Override
105 public void setInt(String fieldName, int data) {
106 if (fieldName.equals("NodeCount")) {
107 this.NodeCount = data;
108 return;
109 }
110 if (fieldName.equals("LeafCount")) {
111 this.LeafCount = data;
112 return;
113 }
114 if (fieldName.equals("RectCount")) {
115 this.RectCount = data;
116 return;
117 }
118 if (fieldName.equals("EntryCount")) {
119 this.EntryCount = data;
120 return;
121 }
122 if (fieldName.equals("SeTouchCount")) {
123 this.SeTouchCount = data;
124 return;
125 }
126 if (fieldName.equals("NonLeafCount")) {
127 this.NonLeafCount = data;
128 return;
129 }
130 super.setInt(fieldName, data);
131 }
132
133 }
134
135 // struct RTree {
136 // Node_t *root;
137 //
138 // SplitQ_t split;
139 //
140 // /* balance criterion for node splitting */
141 // int MinFill;
142 //
143 // /* times */
144 // long ElapsedTime;
145 // float UserTime, SystemTime;
146 //
147 // int Deleting;
148 //
149 // /* variables for statistics */
150 // int StatFlag; /* tells if we are counting or not */
151 // /* counters affected only when StatFlag set */
152 // int InsertCount;
153 // int DeleteCount;
154 // int ReInsertCount;
155 // int InSplitCount;
156 // int DeSplitCount;
157 // int ElimCount;
158 // int EvalCount;
159 // int InTouchCount;
160 // int DeTouchCount;
161 // int SeTouchCount;
162 // int CallCount;
163 // float SplitMeritSum;
164 //
165 // /* counters used even when StatFlag not set */
166 // int RectCount;
167 // int NodeCount;
168 // int LeafCount, NonLeafCount;
169 // int EntryCount;
170 // int SearchCount;
171 // int HitCount;
172 //
173 // };