| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package h; |
| 47 |
|
| 48 |
import smetana.core.UnsupportedStructAndPtr; |
| 49 |
import smetana.core.__ptr__; |
| 50 |
import smetana.core.__struct__; |
| 51 |
import smetana.core.amiga.StarStruct; |
| 52 |
|
| 53 |
public class ST_Agnodeinfo_t extends UnsupportedStructAndPtr { |
| 54 |
|
| 55 |
private final StarStruct parent; |
| 56 |
|
| 57 |
public ST_Agnodeinfo_t() { |
| 58 |
this(null); |
| 59 |
} |
| 60 |
|
| 61 |
public ST_Agnodeinfo_t(StarStruct parent) { |
| 62 |
this.parent = parent; |
| 63 |
} |
| 64 |
|
| 65 |
public final ST_Agrec_s hdr = new ST_Agrec_s(this); |
| 66 |
|
| 67 |
public ST_shape_desc shape; |
| 68 |
public ST_polygon_t shape_info; |
| 69 |
public final ST_pointf coord = new ST_pointf(this); |
| 70 |
public double width, height; |
| 71 |
|
| 72 |
|
| 73 |
public double ht, lw, rw; |
| 74 |
public ST_textlabel_t label; |
| 75 |
public ST_textlabel_t xlabel; |
| 76 |
|
| 77 |
public ST_Agedge_s alg = null; |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
public int id, heapindex, hops; |
| 83 |
|
| 84 |
public int showboxes; |
| 85 |
|
| 86 |
public boolean has_port; |
| 87 |
|
| 88 |
|
| 89 |
public int node_type, mark, onstack; |
| 90 |
public int ranktype, weight_class; |
| 91 |
public ST_Agnode_s next; |
| 92 |
public ST_Agnode_s prev; |
| 93 |
|
| 94 |
public final ST_elist in = new ST_elist(this); |
| 95 |
public final ST_elist out = new ST_elist(this); |
| 96 |
public final ST_elist flat_out = new ST_elist(this); |
| 97 |
public final ST_elist flat_in = new ST_elist(this); |
| 98 |
public final ST_elist other = new ST_elist(this); |
| 99 |
public ST_Agraph_s clust; |
| 100 |
public int UF_size; |
| 101 |
|
| 102 |
public ST_Agnode_s UF_parent; |
| 103 |
|
| 104 |
public ST_Agnode_s inleaf, outleaf; |
| 105 |
public int rank, order; |
| 106 |
public double mval; |
| 107 |
public final ST_elist save_in = new ST_elist(this); |
| 108 |
public final ST_elist save_out = new ST_elist(this); |
| 109 |
public final ST_elist tree_in = new ST_elist(this); |
| 110 |
public final ST_elist tree_out = new ST_elist(this); |
| 111 |
public ST_Agedge_s par; |
| 112 |
public int low, lim; |
| 113 |
public int priority; |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
@Override |
| 120 |
public __ptr__ castTo(Class dest) { |
| 121 |
if (dest == ST_Agrec_s.class) { |
| 122 |
return hdr; |
| 123 |
} |
| 124 |
return super.castTo(dest); |
| 125 |
} |
| 126 |
|
| 127 |
@Override |
| 128 |
public void setDouble(String fieldName, double data) { |
| 129 |
if (fieldName.equals("width")) { |
| 130 |
this.width = data; |
| 131 |
return; |
| 132 |
} |
| 133 |
if (fieldName.equals("height")) { |
| 134 |
this.height = data; |
| 135 |
return; |
| 136 |
} |
| 137 |
if (fieldName.equals("ht")) { |
| 138 |
this.ht = data; |
| 139 |
return; |
| 140 |
} |
| 141 |
if (fieldName.equals("lw")) { |
| 142 |
this.lw = data; |
| 143 |
return; |
| 144 |
} |
| 145 |
if (fieldName.equals("rw")) { |
| 146 |
this.rw = data; |
| 147 |
return; |
| 148 |
} |
| 149 |
if (fieldName.equals("mval")) { |
| 150 |
this.mval = data; |
| 151 |
return; |
| 152 |
} |
| 153 |
super.setDouble(fieldName, data); |
| 154 |
} |
| 155 |
|
| 156 |
@Override |
| 157 |
public void setInt(String fieldName, int data) { |
| 158 |
if (fieldName.equals("showboxes")) { |
| 159 |
this.showboxes = data; |
| 160 |
return; |
| 161 |
} |
| 162 |
if (fieldName.equals("UF_size")) { |
| 163 |
this.UF_size = data; |
| 164 |
return; |
| 165 |
} |
| 166 |
if (fieldName.equals("mark")) { |
| 167 |
this.mark = data; |
| 168 |
return; |
| 169 |
} |
| 170 |
if (fieldName.equals("onstack")) { |
| 171 |
this.onstack = data; |
| 172 |
return; |
| 173 |
} |
| 174 |
if (fieldName.equals("priority")) { |
| 175 |
this.priority = data; |
| 176 |
return; |
| 177 |
} |
| 178 |
if (fieldName.equals("node_type")) { |
| 179 |
this.node_type = data; |
| 180 |
return; |
| 181 |
} |
| 182 |
if (fieldName.equals("rank")) { |
| 183 |
this.rank = data; |
| 184 |
return; |
| 185 |
} |
| 186 |
if (fieldName.equals("order")) { |
| 187 |
this.order = data; |
| 188 |
return; |
| 189 |
} |
| 190 |
if (fieldName.equals("ranktype")) { |
| 191 |
this.ranktype = data; |
| 192 |
return; |
| 193 |
} |
| 194 |
if (fieldName.equals("low")) { |
| 195 |
this.low = data; |
| 196 |
return; |
| 197 |
} |
| 198 |
if (fieldName.equals("lim")) { |
| 199 |
this.lim = data; |
| 200 |
return; |
| 201 |
} |
| 202 |
if (fieldName.equals("weight_class")) { |
| 203 |
this.weight_class = data; |
| 204 |
return; |
| 205 |
} |
| 206 |
super.setInt(fieldName, data); |
| 207 |
} |
| 208 |
|
| 209 |
@Override |
| 210 |
public __ptr__ setPtr(String fieldName, __ptr__ newData) { |
| 211 |
if (fieldName.equals("shape")) { |
| 212 |
this.shape = (ST_shape_desc) newData; |
| 213 |
return shape; |
| 214 |
} |
| 215 |
if (fieldName.equals("shape_info")) { |
| 216 |
this.shape_info = (ST_polygon_t) newData; |
| 217 |
return shape_info; |
| 218 |
} |
| 219 |
if (fieldName.equals("label")) { |
| 220 |
this.label = (ST_textlabel_t) newData; |
| 221 |
return label; |
| 222 |
} |
| 223 |
if (fieldName.equals("clust")) { |
| 224 |
this.clust = (ST_Agraph_s) newData; |
| 225 |
return clust; |
| 226 |
} |
| 227 |
if (fieldName.equals("next")) { |
| 228 |
this.next = (ST_Agnode_s) newData; |
| 229 |
return next; |
| 230 |
} |
| 231 |
if (fieldName.equals("prev")) { |
| 232 |
this.prev = (ST_Agnode_s) newData; |
| 233 |
return prev; |
| 234 |
} |
| 235 |
if (fieldName.equals("UF_parent")) { |
| 236 |
this.UF_parent = (ST_Agnode_s) newData; |
| 237 |
return UF_parent; |
| 238 |
} |
| 239 |
if (fieldName.equals("par")) { |
| 240 |
this.par = (ST_Agedge_s) newData; |
| 241 |
return par; |
| 242 |
} |
| 243 |
if (fieldName.equals("alg")) { |
| 244 |
this.alg = (ST_Agedge_s) alg; |
| 245 |
return alg; |
| 246 |
} |
| 247 |
return super.setPtr(fieldName, newData); |
| 248 |
} |
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
@Override |
| 253 |
public void setStruct(String fieldName, __struct__ newData) { |
| 254 |
if (fieldName.equals("save_in")) { |
| 255 |
save_in.copyDataFrom(newData); |
| 256 |
return; |
| 257 |
} |
| 258 |
if (fieldName.equals("save_out")) { |
| 259 |
save_out.copyDataFrom(newData); |
| 260 |
return; |
| 261 |
} |
| 262 |
if (fieldName.equals("out")) { |
| 263 |
out.copyDataFrom(newData); |
| 264 |
return; |
| 265 |
} |
| 266 |
if (fieldName.equals("in")) { |
| 267 |
in.copyDataFrom(newData); |
| 268 |
return; |
| 269 |
} |
| 270 |
super.setStruct(fieldName, newData); |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|