File size: 21,378 Bytes
2795186 |
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 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 327 328 329 330 331 332 333 334 335 336 337 338 339 340 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 414 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 582 583 584 585 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 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 |
package paysim;
import java.util.ArrayList;
import sim.engine.SimState;
import sim.engine.Steppable;
public class Client extends SuperClient implements Steppable {
private String name = "";
private boolean willRepeat = false;
boolean failed = false;
private double[] probabilityArr;
private ArrayList<ActionProbability> probList;
private ArrayList<Long> stepsToRepeat = new ArrayList<Long>();
private long nrOfStepsToRepeat = 0;
private ArrayList<String> paramFile = new ArrayList<String>();
String currType = "";
private CurrentStepHandler stepHandler = null;
private double x;
private double y;
private double balanceFlag = 0; // steps before and balance
private int countFlag = 0;
public double getDiff(Client c) {
double xFactor = c.getX() - this.x;
xFactor = xFactor * xFactor;
double yFactor = c.getY() - this.y;
yFactor = yFactor * yFactor;
double result = xFactor + yFactor;
result = Math.sqrt(result);
return result;
}
public void move(PaySim paysim) {
int randNrX = 0;
int randNrY = 0;
do {
randNrX = paysim.random.nextInt() % 5;
} while (randNrX == 0);
do {
randNrY = paysim.random.nextInt() % 5;
} while (randNrY == 0);
System.out.println("RandedX:\t" + randNrX + "\tRandedY:\t" + randNrY
+ "\n");
this.x += randNrX;
this.y += randNrY;
if (this.x > 1000) {
this.x = 1000;
} else if (this.x < 0) {
this.x = 0;
}
if (this.y > 1000) {
this.y = 1000;
} else if (this.y < 0) {
this.y = 0;
}
System.out.println("X:\t" + this.x + "\tY:\t" + this.y + "\n");
}
@Override
public void step(SimState state) {
// System.out.println(this.name + "\tBegun\n");
handleAction(state);
// If the action is to be repeated, then make the repetitions
if (this.cont != null) {
handleRepetition(state);
}
// System.out.println(this.name + "\tFinished\n");
}
public long getNrOfStepsToRepeat() {
return nrOfStepsToRepeat;
}
public void setNrOfStepsToRepeat(long nrOfStepsToRepeat) {
this.nrOfStepsToRepeat = nrOfStepsToRepeat;
}
public void handleAction(SimState state) {
PaySim paysim = (PaySim) state;
// Must stored in properties
int action = 0;
// Based on the calculated probablity, an action is chosen
do {
action = this.chooseAction(paysim, this.probabilityArr);
if (action == -1) {
if (this.probabilityArr.length == 0) {
return;
}
}
} while (action == -1);
ActionProbability prob;
switch (action) {
// CASH_IN
case 1:
// Manager.cashInCounter++;
// System.out.println("CashInCounter is:\t" + Manager.cashInCounter
// + "\n");
handleCashIn(paysim, paysim.getRandomClient());
break;
// CASH_OUT
case 2:
prob = getProb("CASH_OUT", paysim);
if (prob != null)
handleCashOut(paysim, paysim.getRandomClient(),
this.getAmount(prob, paysim));
break;
// DEBIT
case 3:
handleDebit(paysim);
break;
// PAYMENT
case 4:
handlePayment(paysim);
break;
// TRANSFER
case 5:
prob = getProb("TRANSFER", paysim);
if (prob != null) {
double amount = this.getAmount(prob, paysim);
double reducedAmount = amount;
int loops = (int) Math.ceil(amount / paysim.transferLimit);
Client c = paysim.getRandomClient();
for (int i = 0; i < loops; i++) {
if (reducedAmount > paysim.transferLimit) {
handleTransfer(paysim, c,
paysim.transferLimit);
reducedAmount -= paysim.transferLimit;
} else {
handleTransfer(paysim, c,
reducedAmount);
}
}
}
break;
}
}
public void handleRepetition(SimState state) {
PaySim paysim = (PaySim) state;
// Based on the nr of times to repeat, make the repetition
for (int i = 0; i < this.stepsToRepeat.size(); i++) {
// System.out.println("Type:\t" + cont.getType() + "\n");
long currentStep = this.stepsToRepeat.get(i);
this.currDay = (int) (currentStep / 24) + 1;
this.currHour = (int) (currentStep - ((this.currDay - 1) * 24));
switch (this.cont.getType()) {
// CASH_IN
case "CASH_IN":
this.currType = "CASH_IN";
handleCashInRepetition(paysim);
break;
// CASH_OUT
case "CASH_OUT":
this.currType = "CASH_OUT";
handleCashOutRepetition(paysim);
break;
// DEBIT
case "DEBIT":
this.currType = "DEBIT";
handleDebitRepetition(paysim);
break;
// DEPOSIT
case "DEPOSIT":
this.currType = "DEPOSIT";
handleDepositRepetition(paysim);
break;
// PAYMENT
case "PAYMENT":
this.currType = "PAYMENT";
handlePaymentRepetition(paysim);
break;
// TRANSFER
case "TRANSFER":
this.currType = "TRANSFER";
handleTrasferRepetition(paysim);
break;
}
}
}
// Setters/getters
public void setClient(Client c) {
this.balance = c.getBalance();
this.currency = c.getCurrency();
this.currStep = c.getCurrStep();
this.name = c.getName();
this.numDeposits = c.getNumDeposits();
this.numTransfers = c.getNumTransfers();
this.numWithdraws = c.getNumWithdraws();
}
public double[] getProbabilityArr() {
return probabilityArr;
}
public void setProbabilityArr(double[] probabilityArr) {
this.probabilityArr = probabilityArr;
}
public void setName(String name) {
// this.name = name;
}
public String getName() {
return this.toString();
}
public String toString() {
return "C" + Integer.toString(this.hashCode());
}
// * 1: CASH_IN ***
// * 2: CASH_OUT ***
// * 3: DEBIT
// * 4: DEPOSIT ***
// * 5: PAYMENT ***
// * 6: TRANSFER
// Handler functions for action
public void handleCashIn(PaySim paysim, SuperClient clientTo) {
// Get the probabilities that correspond to that current day
ActionProbability prob = getProb("CASH_IN", paysim);
// With the probability for that day gained, get the next random number
// in that distribution
if (prob != null) {
double amount = this.getAmount(prob, paysim);
Client clientToTransferAfter = (Client) clientTo;
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
clientToTransferAfter.withdraw(amount);
this.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 1, amount, "CashIn");
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
// System.out.println("Lenght of prob arr CORRECT:\t" +
// this.probabilityArr.length + "\n");
// printActionProbability();
} else {
Manager.nrFailed++;
// System.out.println("Lenght of prob arr NOT-CORRECT:\t" +
// this.probabilityArr.length + "\n");
// Manager.nrFailed++;
// System.out.println("Curr Prob Type:\tCASH_OUT" + "\n"
// + "Day: " + this.currDay + "\tHour:" + this.currHour + "\n"
// );
printActionProbability();
}
}
public void handleCashOut(PaySim paysim, Client clientTo, double amount) {
Client clientToTransferAfter = clientTo;
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 2, amount, "CashOut");
t2.setDay(this.currDay);
t2.setHour(this.currHour);
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
// t2.setVictimFrom(this.isVictim());
t2.setFraud(this.isFraud());
paysim.getTrans().add(t2);
}
public void handleDeposit(PaySim paysim) {
// Get the probabilities that correspond to that current day
// System.out.println("Dumping..\n\n");
// for(ActionProbability temp: paysim.getaProbList()){
// System.out.println(temp.toString() + "\n");
// }
ActionProbability prob = getProb("DEPOSIT", paysim);
if (prob != null) {
// With the probability for that day gained, get the next random
// number in that distribution
double amount = this.getAmount(prob, paysim);
// Store the client before the deposit to keep track of the previous
// balance
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
clientToTransferAfter.withdraw(amount);
this.deposit(amount);
this.numDeposits++;
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 4, amount, "Deposit");
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
// System.out.println("Lenght of prob arr CORRECT:\t" +
// this.probabilityArr.length + "\n");
// printActionProbability();
} else {
// System.out.println("Lenght of prob arr NOT-CORRECT:\t" +
// this.probabilityArr.length + "\n");
// Manager.nrFailed++;
// System.out.println("Curr Prob Type:\tDEPOSIT" + "\n"
// + "Day: " + this.currDay + "\tHour:" + this.currHour + "\n"
// );
printActionProbability();
}
}
public void handlePayment(PaySim paysim) {
Merchant mAfter = paysim.getRandomMerchant();
Merchant merchantToTransferBefore = new Merchant();
merchantToTransferBefore.setMerchant(mAfter);
ActionProbability prob = getProb("PAYMENT", paysim);
if (prob != null) {
double amount = this.getAmount(prob, paysim);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
mAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 5, amount, "Payment");
t2.setMerchantAfter(mAfter);
t2.setMerchantBefore(merchantToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
// System.out.println("Lenght of prob arr CORRECT:\t" +
// this.probabilityArr.length + "\n");
// printActionProbability();
} else {
// System.out.println("Lenght of prob arr NOT-CORRECT:\t" +
// this.probabilityArr.length + "\n");
// Manager.nrFailed++;
// System.out.println("Curr Prob Type:\tPAYMENT" + "\n"
// + "Day: " + this.currDay + "\tHour:" + this.currHour + "\n"
// );
printActionProbability();
}
}
public void handleTransfer(PaySim paysim, Client clientTo, double amount) {
// Get the probabilities that correspond to that current day
if (!this.checkBalanceDropping(paysim.transferLimit, amount)) {
Client clientToTransferAfter = clientTo;
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 6, amount, "Transfer");
t2.setDay(this.currDay);
t2.setHour(this.currHour);
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
// t2.setVictimFrom(this.isVictim());
t2.setFraud(this.isFraud());
paysim.getTrans().add(t2);
} else { // create the transaction but dont move any money
Client clientToTransferAfter = clientTo;
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
// this.withdraw(amount);
// clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 6, amount, "Transfer");
t2.setDay(this.currDay);
t2.setHour(this.currHour);
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
t2.setFlaggedFraud(true);
t2.setFraud(this.isFraud());
paysim.getTrans().add(t2);
}
}
public boolean checkBalanceDropping(double transLimit, double amount) {
boolean flag = false;
if (this.countFlag >= 3) { // check for fraud
if (this.balanceFlag - this.balance - amount > transLimit * 2.5) {
flag = true;
}
} else {
this.countFlag++;
if (this.balanceFlag == 0) {
this.balanceFlag = this.balance;
}
if (this.balanceFlag < this.balance) {
this.balanceFlag = this.balance;
}
}
return flag;
}
public void handleDebit(PaySim paysim) {
// Get the probabilities that correspond to that current day
ActionProbability prob = getProb("DEBIT", paysim);
// With the probability for that day gained, get the next random number
// in that distribution
if (prob != null) {
double amount = this.getAmount(prob, paysim);
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 3, amount, "Debit");
t2.setClientDestBefore(clientToTransferBefore);
t2.setClientDestAfter(clientToTransferAfter);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
// System.out.println("Lenght of prob arr CORRECT:\t" +
// this.probabilityArr.length + "\n");
// printActionProbability();
} else {
// System.out.println("Lenght of prob arr NOT-CORRECT:\t" +
// this.probabilityArr.length + "\n");
// Manager.nrFailed++;
// System.out.println("Curr Prob Type:\tDEBIT" + "\n"
// + "Day: " + this.currDay + "\tHour:" + this.currHour + "\n"
// );
printActionProbability();
}
}
// Handler functions for repetition
public void handleCashInRepetition(PaySim paysim) {
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
clientToTransferAfter.withdraw(amount);
this.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 1, amount, "CashIn");
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
}
public void handleCashOutRepetition(PaySim paysim) {
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 2, amount, "CashOut");
t2.setDay(this.currDay);
t2.setHour(this.currHour);
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
paysim.getTrans().add(t2);
}
public void handleDebitRepetition(PaySim paysim) {
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 3, amount, "Debit");
t2.setClientDestBefore(clientToTransferBefore);
t2.setClientDestAfter(clientToTransferAfter);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
}
public void handleDepositRepetition(PaySim paysim) {
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
// Store the client before the deposit to keep track of the previous
// balance
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
clientToTransferAfter.withdraw(amount);
this.deposit(amount);
this.numDeposits++;
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 4, amount, "Deposit");
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
}
public void handlePaymentRepetition(PaySim paysim) {
Merchant mAfter = paysim.getRandomMerchant();
Merchant merchantToTransferBefore = new Merchant();
merchantToTransferBefore.setMerchant(mAfter);
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
mAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(), before,
this, (short) 5, amount, "Payment");
t2.setMerchantAfter(mAfter);
t2.setMerchantBefore(merchantToTransferBefore);
t2.setDay(this.currDay);
t2.setHour(this.currHour);
paysim.getTrans().add(t2);
}
public void handleTrasferRepetition(PaySim paysim) {
double amount = this.getAmountRepetition(this.currType, this.currDay,
this.currHour, paysim);
if (amount == -1) {
return;
}
try {
Client clientToTransferAfter = getRandomClient(amount, paysim);
Client clientToTransferBefore = new Client();
clientToTransferBefore.setClient(clientToTransferAfter);
Client before = new Client();
before.setClient(this);
this.withdraw(amount);
clientToTransferAfter.deposit(amount);
Transaction t2 = new Transaction(paysim.schedule.getSteps(),
before, this, (short) 6, amount, "Transfer");
t2.setDay(this.currDay);
t2.setHour(this.currHour);
t2.setClientDestAfter(clientToTransferAfter);
t2.setClientDestBefore(clientToTransferBefore);
paysim.getTrans().add(t2);
} catch (Exception e) {
e.printStackTrace();
// System.out.println("returned\n");
return;
}
}
public ArrayList<ActionProbability> getProbList() {
return probList;
}
public boolean isWillRepeat() {
return willRepeat;
}
public Client getRandomClient(double amount, PaySim paysim) {
Client clientToTransfer = new Client();
int counter = 0;
do {
clientToTransfer = paysim.getClients().get(
paysim.random.nextInt(paysim.getClients().size()));
counter++;
if (counter > 50000) {
break;
}
} while (clientToTransfer.getBalance() < amount);
return clientToTransfer;
}
public void setWillRepeat(boolean willRepeat) {
this.willRepeat = willRepeat;
}
public void setProbList(ArrayList<ActionProbability> probList) {
this.probList = probList;
}
private double getAmount(ActionProbability prob, PaySim paysim) {
double amount = 0;
do {
amount = paysim.random.nextGaussian() * prob.getStd()
+ prob.getAverage();
} while (amount <= 0);
return amount;
}
private double getAmountRepetition(String type, int day, int hour,
PaySim paysim) {
AggregateTransactionRecord transRecord = this.stepHandler.getRecord(
type, day, hour);
if (transRecord == null) {
return -1;
}
double amount = 0;
do {
amount = paysim.random.nextGaussian()
* Double.parseDouble(transRecord.gettStd())
+ Double.parseDouble(transRecord.gettAvg());
} while (amount <= 0);
return amount;
}
public ArrayList<Long> getStepsToRepeat() {
return stepsToRepeat;
}
public void setStepsToRepeat(ArrayList<Long> stepsToRepeat) {
this.stepsToRepeat = stepsToRepeat;
}
private ActionProbability getProb(String probToGet, PaySim p) {
for (ActionProbability temp : this.probList) {
if (temp.getType().equals(probToGet)) {
return temp;
}
}
return null;
}
private void printActionProbability() {
System.out.println("Printing prob\n");
for (ActionProbability p : this.probList) {
System.out.println(p.getType() + "\n" + p.getNrOfTransactions()
+ "\n");
}
System.out.println("\n\n");
}
public ArrayList<String> getParamFile() {
return paramFile;
}
public void setParamFile(ArrayList<String> paramFile) {
this.paramFile = paramFile;
}
public CurrentStepHandler getStepHandler() {
return stepHandler;
}
public void setStepHandler(CurrentStepHandler stepHandler) {
this.stepHandler = stepHandler;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
}
|