330 t->
SetTrace(
"$node_(0) set X_ 1.0\n"
331 "$node_(0) set Y_ 2.0\n"
332 "$node_(0) set Z_ 3.0\n");
340 "$node_(0) set X_ 1.0 # comment \n"
341 "$node_(0) set Y_ 2.0 ### \n"
342 "$node_(0) set Z_ 3.0 # $node_(0) set Z_ 3.0\n"
343 "#$node_(0) set Z_ 100 #");
349 t->
SetTrace(
"$ns_ at 1.0 \"$node_(0) setdest 25 0 5\"");
358 t->
SetTrace(
"$node_(0) set X_ 0.0\n"
359 "$node_(0) set Y_ 0.0\n"
360 "$ns_ at 1.0 \"$node_(0) setdest 5 0 5\"\n"
361 "$ns_ at 2.0 \"$node_(0) setdest 5 5 5\"\n"
362 "$ns_ at 3.0 \"$node_(0) setdest 0 5 5\"\n"
363 "$ns_ at 4.0 \"$node_(0) setdest 0 0 5\"\n");
381 t->
SetTrace(
"$ns_ at 1.0 \"$node_(0) setdest 15 10 5\"\n"
382 "$ns_ at 2.0 \"$node_(0) setdest 15 15 5\"\n"
383 "$ns_ at 3.0 \"$node_(0) setdest 10 15 5\"\n"
384 "$ns_ at 4.0 \"$node_(0) setdest 10 10 5\"\n"
385 "$node_(0) set X_ 10.0\n"
386 "$node_(0) set Y_ 10.0\n");
401 t->
SetTrace(
"$ns_ at 1.0 \"$node_(0) set X_ 10\"\n"
402 "$ns_ at 1.0 \"$node_(0) set Z_ 10\"\n"
403 "$ns_ at 1.0 \"$node_(0) set Y_ 10\"");
412 t->
SetTrace(
"$node() set X_ 1 # node id is not present\n"
413 "$node # incoplete line\"\n"
414 "$node this line is not correct\n"
415 "$node_(0) set X_ 1 # line OK \n"
416 "$node_(0) set Y_ 2 # line OK \n"
417 "$node_(0) set Z_ 3 # line OK \n"
418 "$ns_ at \"$node_(0) setdest 4 4 4\" # time not present\n"
419 "$ns_ at 1 \"$node_(0) setdest 2 2 1 \" # line OK \n");
429 "$node_(0) set X_ 1 # line OK \n"
430 "$node_(0) set Y_ 2 # line OK \n"
431 "$node_(0) set Z_ 3 # line OK \n"
432 "$node_(-22) set Y_ 3 # node id not correct\n"
433 "$node_(3.3) set Y_ 1111 # node id not correct\n"
434 "$ns_ at sss \"$node_(0) setdest 5 5 5\" # time is not a number\n"
435 "$ns_ at 1 \"$node_(0) setdest 2 2 1\" # line OK \n"
436 "$ns_ at 1 \"$node_(0) setdest 2 2 -1\" # negative speed is not correct\n"
437 "$ns_ at 1 \"$node_(0) setdest 2 2 sdfs\" # speed is not a number\n"
438 "$ns_ at 1 \"$node_(0) setdest 2 2 s232dfs\" # speed is not a number\n"
439 "$ns_ at 1 \"$node_(0) setdest 233 2.. s232dfs\" # more than one non numbers\n"
440 "$ns_ at -12 \"$node_(0) setdest 11 22 33\" # time should not be negative\n");
449 t->
SetTrace(
"$node_(0) set X_ 1.0\n"
450 "$node_(0) set Y_ 2.0\n"
451 "$node_(0) set Z_ 3.0\n"
452 "$ns_ at 1.0 \"$node_(1) setdest 25 0 5\"\n"
453 "$node_(2) set X_ 0.0\n"
454 "$node_(2) set Y_ 0.0\n"
455 "$ns_ at 1.0 \"$node_(2) setdest 5 0 5\"\n"
456 "$ns_ at 2.0 \"$node_(2) setdest 5 5 5\"\n"
457 "$ns_ at 3.0 \"$node_(2) setdest 0 5 5\"\n"
458 "$ns_ at 4.0 \"$node_(2) setdest 0 0 5\"\n");
477 t->
SetTrace(
"$ns_ at 1.0 \"$node_(0) setdest 25 0 5\"\n"
478 "$ns_ at 7.0 \"$node_(0) setdest 11 22 0\"\n");
488 t->
SetTrace(
"$node_(0) set X_ -1.0\n"
489 "$node_(0) set Y_ 0\n"
490 "$ns_ at 1.0 \"$node_(0) setdest 0 0 1\"\n"
491 "$ns_ at 2.0 \"$node_(0) setdest 0 -1 1\"\n");
502 t->
SetTrace(
"$node_(0) set X_ 0.0\n"
503 "$node_(0) set Y_ 0.0\n"
504 "$ns_ at 1.0 \"$node_(0) setdest 1.0e+2 0 1.0e+2\"\n"
505 "$ns_ at 2.0 \"$node_(0) setdest 1.0e+2 1.0e+2 1.0e+2\"\n"
506 "$ns_ at 3.0 \"$node_(0) setdest 0 1.0e+2 1.0e+2\"\n"
507 "$ns_ at 4.0 \"$node_(0) setdest 0 0 1.0e+2\"\n");
520 t->
SetTrace(
"$node_(0) set X_ 0.0\n"
521 "$node_(0) set Y_ 0.0\n"
522 "$ns_ at 1.0 \"$node_(0) setdest 0 10 1\"\n"
523 "$ns_ at 6.0 \"$node_(0) setdest 0 -10 1\"\n");
531 t->
SetTrace(
"$node_(0) set X_ 10.0\r\n"
532 "$node_(0) set Y_ 0.0\r\n");
537 t->
SetTrace(
"$node_(0) set X_ 10.0\n"
538 "$node_(0) set Y_ 0.0\n"
539 "$ns_ at 1.0 \"$node_(0) setdest 10 0 1\"\n");
547 t->
SetTrace(
"$node_(0) set X_ 350.00000000000000\n"
548 "$node_(0) set Y_ 50.00000000000000\n"
549 "$ns_ at 50.00000000000000 \"$node_(0) setdest 400.00000000000000 "
550 "50.00000000000000 1.00000000000000\"\n"
551 "$ns_ at 150.00000000000000 \"$node_(0) setdest 400.00000000000000 "
552 "150.00000000000000 4.00000000000000\"\n"
553 "$ns_ at 300.00000000000000 \"$node_(0) setdest 250.00000000000000 "
554 "150.00000000000000 3.00000000000000\"\n"
555 "$ns_ at 350.00000000000000 \"$node_(0) setdest 250.00000000000000 "
556 "50.00000000000000 1.00000000000000\"\n"
557 "$ns_ at 600.00000000000000 \"$node_(0) setdest 250.00000000000000 "
558 "1050.00000000000000 2.00000000000000\"\n"
559 "$ns_ at 900.00000000000000 \"$node_(0) setdest 300.00000000000000 "
560 "650.00000000000000 2.50000000000000\"\n");
563 Vector(350.000, 50.000, 0.000),
564 Vector(0.000, 0.000, 0.000));
567 Vector(350.000, 50.000, 0.000),
568 Vector(1.000, 0.000, 0.000));
571 Vector(400.000, 50.000, 0.000),
572 Vector(0.000, 0.000, 0.000));
575 Vector(400.000, 50.000, 0.000),
576 Vector(0.000, 4.000, 0.000));
579 Vector(400.000, 150.000, 0.000),
580 Vector(0.000, 0.000, 0.000));
583 Vector(400.000, 150.000, 0.000),
584 Vector(-3.000, 0.000, 0.000));
587 Vector(250.000, 150.000, 0.000),
588 Vector(0.000, 0.000, 0.000));
591 Vector(250.000, 150.000, 0.000),
592 Vector(0.000, -1.000, 0.000));
595 Vector(250.000, 50.000, 0.000),
596 Vector(0.000, 0.000, 0.000));
599 Vector(250.000, 50.000, 0.000),
600 Vector(0.000, 2.000, 0.000));
603 Vector(250.000, 650.000, 0.000),
604 Vector(2.500, 0.000, 0.000));
607 Vector(300.000, 650.000, 0.000),
608 Vector(0.000, 0.000, 0.000));