| 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 |
package dr.evomodel.antigenic; |
| 27 |
|
| 28 |
import java.util.logging.Logger; |
| 29 |
|
| 30 |
import dr.inference.model.Likelihood; |
| 31 |
import dr.inference.model.Parameter; |
| 32 |
import dr.inference.operators.GibbsOperator; |
| 33 |
import dr.inference.operators.MCMCOperator; |
| 34 |
import dr.inference.operators.SimpleMCMCOperator; |
| 35 |
import dr.math.MathUtils; |
| 36 |
import dr.xml.*; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
public class DistanceDependentCRPGibbsOperator extends SimpleMCMCOperator implements GibbsOperator { |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
public final static String DDCRP_GIBBS_OPERATOR = "distanceDependentCRPGibbsOperator"; |
| 51 |
|
| 52 |
|
| 53 |
private final Parameter chiParameter; |
| 54 |
private final double[][] depMatrix; |
| 55 |
public NPAntigenicLikelihood modelLikelihood; |
| 56 |
private Parameter links = null; |
| 57 |
private Parameter assignments = null; |
| 58 |
|
| 59 |
double k0; |
| 60 |
double v0; |
| 61 |
double[] m; |
| 62 |
double[][] T0Inv; |
| 63 |
double logDetT0; |
| 64 |
|
| 65 |
|
| 66 |
public DistanceDependentCRPGibbsOperator(Parameter links, Parameter assignments, |
| 67 |
Parameter chiParameter, |
| 68 |
NPAntigenicLikelihood Likelihood, |
| 69 |
double weight) { |
| 70 |
|
| 71 |
this.links = links; |
| 72 |
this.assignments = assignments; |
| 73 |
this.modelLikelihood = Likelihood; |
| 74 |
this.chiParameter = chiParameter; |
| 75 |
this.depMatrix = Likelihood.getLogDepMatrix(); |
| 76 |
|
| 77 |
for (int i=0;i<links.getDimension();i++){ |
| 78 |
links.setParameterValue(i, i); |
| 79 |
} |
| 80 |
|
| 81 |
|
| 82 |
setWeight(weight); |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
this.m = new double[2]; |
| 88 |
m[0]= modelLikelihood.priorMean.getParameterValue(0); |
| 89 |
m[1]= modelLikelihood.priorMean.getParameterValue(1); |
| 90 |
|
| 91 |
|
| 92 |
this.v0 = 2; |
| 93 |
|
| 94 |
this.k0= modelLikelihood.priorPrec.getParameterValue(0)/modelLikelihood.clusterPrec.getParameterValue(0); |
| 95 |
|
| 96 |
|
| 97 |
this.T0Inv= new double[2][2]; |
| 98 |
T0Inv[0][0]= v0/modelLikelihood.clusterPrec.getParameterValue(0); |
| 99 |
T0Inv[1][1]= v0/modelLikelihood.clusterPrec.getParameterValue(0); |
| 100 |
T0Inv[1][0]= 0.0; |
| 101 |
T0Inv[0][1]= 0.0; |
| 102 |
|
| 103 |
|
| 104 |
this.logDetT0= -Math.log(T0Inv[0][0]*T0Inv[1][1]); |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
} |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
public Parameter getParameter() { |
| 118 |
return (Parameter) links; |
| 119 |
} |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
public final double doOperation() { |
| 132 |
|
| 133 |
|
| 134 |
int index = MathUtils.nextInt(links.getDimension()); |
| 135 |
|
| 136 |
int oldGroup = (int)assignments.getParameterValue(index); |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
int minEmp = minEmpty(modelLikelihood.getLogLikelihoodsVector()); |
| 142 |
links.setParameterValue(index, index); |
| 143 |
int[] visited = connected(index, links); |
| 144 |
|
| 145 |
int ii = 0; |
| 146 |
while (visited[ii]!=0){ |
| 147 |
assignments.setParameterValue(visited[ii]-1, minEmp); |
| 148 |
ii++; |
| 149 |
} |
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
modelLikelihood.setLogLikelihoodsVector(oldGroup,modelLikelihood.getLogLikGroup(oldGroup) ); |
| 161 |
|
| 162 |
modelLikelihood.setLogLikelihoodsVector(minEmp,modelLikelihood.getLogLikGroup(minEmp) ); |
| 163 |
|
| 164 |
|
| 165 |
int maxFull = maxFull( modelLikelihood.getLogLikelihoodsVector()); |
| 166 |
|
| 167 |
double[] liks = modelLikelihood.getLogLikelihoodsVector(); |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
double[] crossedLiks = new double[maxFull+1]; |
| 173 |
|
| 174 |
for (int ll=0;ll<maxFull+1;ll++ ){ |
| 175 |
if (ll!=minEmp){ |
| 176 |
crossedLiks[ll]=getLogLik2Group(ll,minEmp); |
| 177 |
} |
| 178 |
} |
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
double[] logP = new double[links.getDimension()]; |
| 185 |
|
| 186 |
for (int jj=0; jj<links.getDimension(); jj++){ |
| 187 |
logP[jj] += depMatrix[index][jj]; |
| 188 |
|
| 189 |
int n = (int)assignments.getParameterValue(jj); |
| 190 |
if (n!= minEmp){ |
| 191 |
logP[jj]+=crossedLiks[n] - liks[n] - liks[minEmp]; |
| 192 |
} |
| 193 |
} |
| 194 |
|
| 195 |
logP[index]= Math.log(chiParameter.getParameterValue(0)); |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
this.rescale(logP); |
| 210 |
this.exp(logP); |
| 211 |
|
| 212 |
int k = MathUtils.randomChoicePDF(logP); |
| 213 |
|
| 214 |
links.setParameterValue(index, k); |
| 215 |
|
| 216 |
int newGroup = (int)assignments.getParameterValue(k); |
| 217 |
ii = 0; |
| 218 |
while (visited[ii]!=0){ |
| 219 |
assignments.setParameterValue(visited[ii]-1, newGroup); |
| 220 |
ii++; |
| 221 |
} |
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
modelLikelihood.setLogLikelihoodsVector(newGroup, modelLikelihood.getLogLikGroup(newGroup)); |
| 229 |
if (newGroup!=minEmp){ |
| 230 |
modelLikelihood.setLogLikelihoodsVector(minEmp, 0); |
| 231 |
|
| 232 |
} |
| 233 |
|
| 234 |
sampleMeans(maxFull); |
| 235 |
|
| 236 |
return 0.0; |
| 237 |
|
| 238 |
} |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
public int minEmpty(double[] logLikVector){ |
| 250 |
int isEmpty=0; |
| 251 |
int i =0; |
| 252 |
while (isEmpty==0){ |
| 253 |
if(logLikVector[i]==0){ |
| 254 |
isEmpty=1;} |
| 255 |
else { |
| 256 |
if(i==logLikVector.length-1){isEmpty=1;} |
| 257 |
i++;} |
| 258 |
} |
| 259 |
return i; |
| 260 |
} |
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
public int maxFull(double[] logLikVector){ |
| 270 |
int isEmpty=1; |
| 271 |
int i =logLikVector.length-1; |
| 272 |
while (isEmpty==1){ |
| 273 |
if(logLikVector[i]!=0){ |
| 274 |
isEmpty=0;} |
| 275 |
else {i--;} |
| 276 |
} |
| 277 |
return i; |
| 278 |
} |
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
public int[] connected(int i, Parameter clusteringParameter){ |
| 284 |
int n = clusteringParameter.getDimension(); |
| 285 |
int[] visited = new int[n+1]; |
| 286 |
visited[0]=i+1; |
| 287 |
int tv=1; |
| 288 |
|
| 289 |
for(int j=0;j<n;j++){ |
| 290 |
if(visited[j]!=0){ |
| 291 |
int curr = visited[j]-1; |
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
int forward = (int) clusteringParameter.getParameterValue(curr); |
| 297 |
visited[tv] = forward+1; |
| 298 |
tv++; |
| 299 |
|
| 300 |
|
| 301 |
for(int ii=0; ii<tv-1; ii++){ |
| 302 |
if(visited[ii]==forward+1){ |
| 303 |
tv--; |
| 304 |
visited[tv]=0; |
| 305 |
} |
| 306 |
} |
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
for (int jj=0; jj<n;jj++){ |
| 312 |
if((int)clusteringParameter.getParameterValue(jj)==curr){ |
| 313 |
visited[tv]= jj+1; |
| 314 |
tv++; |
| 315 |
|
| 316 |
for(int ii=0; ii<tv-1; ii++){ |
| 317 |
if(visited[ii]==jj+1){ |
| 318 |
tv--; |
| 319 |
visited[tv]=0; |
| 320 |
} |
| 321 |
} |
| 322 |
|
| 323 |
} |
| 324 |
} |
| 325 |
|
| 326 |
}} |
| 327 |
return visited; |
| 328 |
|
| 329 |
} |
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
private void printInformtion(Parameter par) { |
| 335 |
StringBuffer sb = new StringBuffer("parameter \n"); |
| 336 |
for(int j=0; j<par.getDimension(); j++){ |
| 337 |
sb.append(par.getParameterValue(j)); |
| 338 |
} |
| 339 |
|
| 340 |
Logger.getLogger("dr.evomodel").info(sb.toString()); }; |
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
public double getLogLik2Group(int group1, int group2){ |
| 414 |
throw new UnsupportedOperationException("This method has been commented out because of build errors"); |
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
|
| 503 |
} |
| 504 |
|
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
public void sampleMeans(int maxFull){ |
| 582 |
|
| 583 |
double[][] means=new double[maxFull+2][2]; |
| 584 |
|
| 585 |
throw new UnsupportedOperationException("This method has been commented out because of build errors"); |
| 586 |
|
| 587 |
|
| 588 |
|
| 589 |
|
| 590 |
|
| 591 |
|
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
|
| 666 |
|
| 667 |
|
| 668 |
|
| 669 |
|
| 670 |
|
| 671 |
|
| 672 |
|
| 673 |
|
| 674 |
|
| 675 |
|
| 676 |
} |
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
|
| 681 |
|
| 682 |
|
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
|
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
|
| 692 |
private void exp(double[] logX) { |
| 693 |
for (int i = 0; i < logX.length; ++i) { |
| 694 |
logX[i] = Math.exp(logX[i]); |
| 695 |
|
| 696 |
} |
| 697 |
} |
| 698 |
|
| 699 |
private void rescale(double[] logX) { |
| 700 |
throw new UnsupportedOperationException("This method has been commented out because of build errors"); |
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
} |
| 715 |
|
| 716 |
private double max(double[] x) { |
| 717 |
double max = x[0]; |
| 718 |
for (double xi : x) { |
| 719 |
if (xi > max) { |
| 720 |
max = xi; |
| 721 |
} |
| 722 |
} |
| 723 |
return max; |
| 724 |
} |
| 725 |
|
| 726 |
|
| 727 |
public final String getOperatorName() { |
| 728 |
return DDCRP_GIBBS_OPERATOR; |
| 729 |
} |
| 730 |
|
| 731 |
public final void optimize(double targetProb) { |
| 732 |
|
| 733 |
throw new RuntimeException("This operator cannot be optimized!"); |
| 734 |
} |
| 735 |
|
| 736 |
public boolean isOptimizing() { |
| 737 |
return false; |
| 738 |
} |
| 739 |
|
| 740 |
public void setOptimizing(boolean opt) { |
| 741 |
throw new RuntimeException("This operator cannot be optimized!"); |
| 742 |
} |
| 743 |
|
| 744 |
public double getMinimumAcceptanceLevel() { |
| 745 |
return 0.1; |
| 746 |
} |
| 747 |
|
| 748 |
public double getMaximumAcceptanceLevel() { |
| 749 |
return 0.4; |
| 750 |
} |
| 751 |
|
| 752 |
public double getMinimumGoodAcceptanceLevel() { |
| 753 |
return 0.20; |
| 754 |
} |
| 755 |
|
| 756 |
public double getMaximumGoodAcceptanceLevel() { |
| 757 |
return 0.30; |
| 758 |
} |
| 759 |
|
| 760 |
public String getPerformanceSuggestion() { |
| 761 |
if (Utils.getAcceptanceProbability(this) < getMinimumAcceptanceLevel()) { |
| 762 |
return ""; |
| 763 |
} else if (Utils.getAcceptanceProbability(this) > getMaximumAcceptanceLevel()) { |
| 764 |
return ""; |
| 765 |
} else { |
| 766 |
return ""; |
| 767 |
} |
| 768 |
} |
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
public static XMLObjectParser PARSER = new AbstractXMLObjectParser() { |
| 775 |
public final static String CHI = "chi"; |
| 776 |
public final static String LIKELIHOOD = "likelihood"; |
| 777 |
public final static String ASSIGNMENTS = "assignments"; |
| 778 |
public final static String LINKS = "links"; |
| 779 |
public final static String DEP_MATRIX = "depMatrix"; |
| 780 |
|
| 781 |
public String getParserName() { |
| 782 |
return DDCRP_GIBBS_OPERATOR; |
| 783 |
} |
| 784 |
|
| 785 |
|
| 786 |
|
| 787 |
|
| 788 |
public Object parseXMLObject(XMLObject xo) throws XMLParseException { |
| 789 |
|
| 790 |
double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT); |
| 791 |
|
| 792 |
|
| 793 |
XMLObject cxo = xo.getChild(ASSIGNMENTS); |
| 794 |
Parameter assignments = (Parameter) cxo.getChild(Parameter.class); |
| 795 |
|
| 796 |
cxo = xo.getChild(LINKS); |
| 797 |
Parameter links = (Parameter) cxo.getChild(Parameter.class); |
| 798 |
|
| 799 |
cxo = xo.getChild(CHI); |
| 800 |
Parameter chiParameter = (Parameter) cxo.getChild(Parameter.class); |
| 801 |
|
| 802 |
|
| 803 |
|
| 804 |
cxo = xo.getChild(LIKELIHOOD); |
| 805 |
NPAntigenicLikelihood likelihood = (NPAntigenicLikelihood)cxo.getChild(NPAntigenicLikelihood.class); |
| 806 |
|
| 807 |
|
| 808 |
|
| 809 |
|
| 810 |
return new DistanceDependentCRPGibbsOperator( links, assignments, |
| 811 |
chiParameter,likelihood, weight); |
| 812 |
|
| 813 |
} |
| 814 |
|
| 815 |
|
| 816 |
|
| 817 |
|
| 818 |
|
| 819 |
public String getParserDescription() { |
| 820 |
return "An operator that picks a new allocation of an item to a cluster under the Dirichlet process."; |
| 821 |
} |
| 822 |
|
| 823 |
public Class getReturnType() { |
| 824 |
return DistanceDependentCRPGibbsOperator.class; |
| 825 |
} |
| 826 |
|
| 827 |
|
| 828 |
public XMLSyntaxRule[] getSyntaxRules() { |
| 829 |
return rules; |
| 830 |
} |
| 831 |
|
| 832 |
private final XMLSyntaxRule[] rules = { |
| 833 |
AttributeRule.newDoubleRule(MCMCOperator.WEIGHT), |
| 834 |
new ElementRule(CHI, new XMLSyntaxRule[] { |
| 835 |
new ElementRule(Parameter.class), |
| 836 |
}), |
| 837 |
new ElementRule(LIKELIHOOD, new XMLSyntaxRule[] { |
| 838 |
new ElementRule(Likelihood.class), |
| 839 |
}, true), |
| 840 |
new ElementRule(ASSIGNMENTS, |
| 841 |
new XMLSyntaxRule[]{new ElementRule(Parameter.class)}), |
| 842 |
new ElementRule(LINKS, |
| 843 |
new XMLSyntaxRule[]{new ElementRule(Parameter.class)}), |
| 844 |
|
| 845 |
}; |
| 846 |
|
| 847 |
}; |
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
public int getStepCount() { |
| 852 |
return 1; |
| 853 |
} |
| 854 |
|
| 855 |
} |
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
|