Advertisement
Markel_fe

Simplificar puntos

Nov 12th, 2020
2,676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 7.27 KB | None | 0 0
  1. -- En el primer caso hay 5 peajes en las posiciones 1,4,5,7,10
  2. -- Niveles: El array de prueba (amarillo), T_Estatica_carreters(morado), V_carreteras(azul)
  3. (
  4.   (
  5.     Cont=>10,
  6.     Ctras=>(
  7.       (Codigo=>(others=>'z'),
  8.       Inicio=>(others=>'z'),
  9.       Final=>(others=>'z'),
  10.       Peaje_km=>7.0,
  11.       Trazado=>(
  12.         Num => 10,
  13.         Ptos => (
  14.           (5.372,2.209),
  15.           (5.372,2.209),
  16.           (6.352,3.425),
  17.           (8.329,3.291),
  18.           (8.329,3.291),
  19.           (8.329,3.291),
  20.           (8.329,4.292),
  21.           (8.329,4.292),
  22.           (8.329,4.292),
  23.           (9.281,2.390),
  24.           others=>(100.0,100.0)
  25.         )
  26.       )),
  27.       (Codigo=>(others=>'z'),
  28.       Inicio=>(others=>'z'),
  29.       Final=>(others=>'z'),
  30.       Peaje_km=>0.0,
  31.       Trazado=>(
  32.         Num => 6,
  33.         Ptos => (
  34.           (5.372,2.209),
  35.           (6.332,3.425),
  36.           (5.372,2.209),
  37.           (8.329,4.292),
  38.           (9.281,2.390),
  39.           (9.281,2.390),
  40.           others=>(100.0,100.0)
  41.         )
  42.       )),
  43.       (Codigo=>(others=>'z'),
  44.       Inicio=>(others=>'z'),
  45.       Final=>(others=>'z'),
  46.       Peaje_km=>0.0,
  47.       Trazado=>(
  48.         Num => 7,
  49.         Ptos => (
  50.           (5.372,2.209),
  51.           (6.332,3.425),
  52.           (7.283,3.209),
  53.           (7.283,3.209),
  54.           (7.283,3.209),
  55.           (8.329,4.292),
  56.           (9.281,2.390),
  57.           others=>(100.0,100.0)
  58.         )
  59.       )),
  60.       (Codigo=>(others=>'z'),
  61.       Inicio=>(others=>'z'),
  62.       Final=>(others=>'z'),
  63.       Peaje_km=>4.0,
  64.       Trazado=>(
  65.         Num => 6,
  66.         Ptos => (
  67.           (5.372,2.209),
  68.           (6.332,3.425),
  69.           (7.283,3.209),
  70.           (8.329,4.292),
  71.           (9.281,2.390),
  72.           (7.283,3.209),
  73.           others=>(100.0,100.0)
  74.         )
  75.       )),
  76.       (Codigo=>(others=>'z'),
  77.       Inicio=>(others=>'z'),
  78.       Final=>(others=>'z'),
  79.       Peaje_km=>7.0,
  80.       Trazado=>(
  81.         Num => 8,
  82.         Ptos => (
  83.           (5.372,2.209),
  84.           (5.372,2.209),
  85.           (5.372,2.209),
  86.           (5.372,2.209),
  87.           (6.332,3.425),
  88.           (7.283,3.209),
  89.           (8.329,4.292),
  90.           (-9.281,2.390),
  91.           others=>(100.0,100.0)
  92.         )
  93.       )),
  94.       (Codigo=>(others=>'z'),
  95.       Inicio=>(others=>'z'),
  96.       Final=>(others=>'z'),
  97.       Peaje_km=>0.0,
  98.       Trazado=>(
  99.         Num => 8,
  100.         Ptos => (
  101.           (5.372,2.209),
  102.           (5.372,2.209),
  103.           (6.332,3.425),
  104.           (7.283,3.209),
  105.           (8.329,4.292),
  106.           (9.281,2.390),
  107.           (9.281,2.390),
  108.           (9.281,2.390),
  109.           others=>(100.0,100.0)
  110.         )
  111.       )),
  112.       (Codigo=>(others=>'z'),
  113.       Inicio=>(others=>'z'),
  114.       Final=>(others=>'z'),
  115.       Peaje_km=>7.0,
  116.       Trazado=>(
  117.         Num => 5,
  118.         Ptos => (
  119.           (5.372,2.209),
  120.           (6.352,3.291),
  121.           (8.329,3.291),
  122.           (8.329,4.292),
  123.           (9.281,2.390),
  124.           others=>(100.0,100.0)
  125.         )
  126.       )),
  127.       (Codigo=>(others=>'z'),
  128.       Inicio=>(others=>'z'),
  129.       Final=>(others=>'z'),
  130.       Peaje_km=>0.0,
  131.       Trazado=>(
  132.         Num => 6,
  133.         Ptos => (
  134.           (5.372,2.209),
  135.           (6.332,3.425),
  136.           (6.332,2.209),
  137.           (5.372,2.209),
  138.           (8.329,4.292),
  139.           (9.281,2.390),
  140.           others=>(100.0,100.0)
  141.         )
  142.       )),
  143.       (Codigo=>(others=>'z'),
  144.       Inicio=>(others=>'z'),
  145.       Final=>(others=>'z'),
  146.       Peaje_km=>0.0,
  147.       Trazado=>(
  148.         Num => 5,
  149.         Ptos => (
  150.           (5.372,2.209),
  151.           (6.332,3.425),
  152.           (7.283,3.209),
  153.           (8.329,4.292),
  154.           (9.281,2.390),
  155.           others=>(100.0,100.0)
  156.         )
  157.       )),
  158.       (Codigo=>(others=>'z'),
  159.       Inicio=>(others=>'z'),
  160.       Final=>(others=>'z'),
  161.       Peaje_km=>4.0,
  162.       Trazado=>(
  163.         Num => 5,
  164.         Ptos => (
  165.           (5.372,3.425),
  166.           (6.332,3.425),
  167.           (7.283,3.209),
  168.           (8.329,4.292),
  169.           (9.281,2.390),
  170.           others=>(100.0,100.0)
  171.         )
  172.       )),
  173.       others=>(
  174.         Codigo=>(others=>'z'),
  175.         Inicio=>(others=>'z'),
  176.         Final=>(others=>'z'),
  177.         Peaje_km=>42.0,
  178.         Trazado=>(Num => 0,Ptos => (others=>(100.0,100.0)))
  179.       )
  180.     )
  181.   ),
  182.   (
  183.     Cont=>8,
  184.     Ctras=>(
  185.       (Codigo=>(others=>'z'),
  186.       Inicio=>(others=>'z'),
  187.       Final=>(others=>'z'),
  188.       Peaje_km=>7.0,
  189.       Trazado=>(
  190.         Num => 6,
  191.         Ptos => (
  192.           (5.372,2.209),
  193.           (6.352,3.425),
  194.           (8.329,3.291),
  195.           (8.329,4.292),
  196.           (9.281,2.390),
  197.           (9.281,2.390),
  198.           others=>(100.0,100.0)
  199.         )
  200.       )),
  201.       (Codigo=>(others=>'z'),
  202.       Inicio=>(others=>'z'),
  203.       Final=>(others=>'z'),
  204.       Peaje_km=>0.0,
  205.       Trazado=>(
  206.         Num => 4,
  207.         Ptos => (
  208.           (5.372,2.209),
  209.           (6.332,3.425),
  210.           (8.329,4.292),
  211.           (9.281,2.390),
  212.           others=>(100.0,100.0)
  213.         )
  214.       )),
  215.       (Codigo=>(others=>'z'),
  216.       Inicio=>(others=>'z'),
  217.       Final=>(others=>'z'),
  218.       Peaje_km=>7.0,
  219.       Trazado=>(
  220.         Num => 5,
  221.         Ptos => (
  222.           (5.372,2.209),
  223.           (6.332,3.425),
  224.           (7.283,3.209),
  225.           (8.329,3.425),
  226.           (-9.281,2.390),
  227.           others=>(100.0,100.0)
  228.         )
  229.       )),
  230.       (Codigo=>(others=>'z'),
  231.       Inicio=>(others=>'z'),
  232.       Final=>(others=>'z'),
  233.       Peaje_km=>0.0,
  234.       Trazado=>(
  235.         Num => 5,
  236.         Ptos => (
  237.           (5.372,2.209),
  238.           (6.332,3.425),
  239.           (9.281,2.390),
  240.           (8.329,4.292),
  241.           (9.281,2.390),
  242.           others=>(100.0,100.0)
  243.         )
  244.       )),
  245.       (Codigo=>(others=>'z'),
  246.       Inicio=>(others=>'z'),
  247.       Final=>(others=>'z'),
  248.       Peaje_km=>0.0,
  249.       Trazado=>(
  250.         Num => 5,
  251.         Ptos => (
  252.           (5.372,2.209),
  253.           (6.352,3.425),
  254.           (5.372,2.209),
  255.           (8.329,4.292),
  256.           (9.281,2.390),
  257.           others=>(100.0,100.0)
  258.         )
  259.       )),
  260.       (Codigo=>(others=>'z'),
  261.       Inicio=>(others=>'z'),
  262.       Final=>(others=>'z'),
  263.       Peaje_km=>0.0,
  264.       Trazado=>(
  265.         Num => 5,
  266.         Ptos => (
  267.           (5.372,2.209),
  268.           (6.332,3.425),
  269.           (5.372,2.209),
  270.           (8.329,4.292),
  271.           (9.281,2.390),
  272.           others=>(100.0,100.0)
  273.         )
  274.       )),
  275.       (Codigo=>(others=>'z'),
  276.       Inicio=>(others=>'z'),
  277.       Final=>(others=>'z'),
  278.       Peaje_km=>0.0,
  279.       Trazado=>(
  280.         Num => 5,
  281.         Ptos => (
  282.           (5.372,2.209),
  283.           (6.332,3.425),
  284.           (7.283,3.209),
  285.           (8.329,4.292),
  286.           (9.281,2.390),
  287.           others=>(100.0,100.0)
  288.         )
  289.       )),
  290.       (Codigo=>(others=>'z'),
  291.       Inicio=>(others=>'z'),
  292.       Final=>(others=>'z'),
  293.       Peaje_km=>4.0,
  294.       Trazado=>(
  295.         Num => 5,
  296.         Ptos => (
  297.           (5.372,2.209),
  298.           (6.332,3.425),
  299.           (7.283,3.209),
  300.           (8.329,4.292),
  301.           (9.281,2.390),
  302.           others=>(100.0,100.0)
  303.         )
  304.       )),
  305.       others=>(
  306.         Codigo=>(others=>'z'),
  307.         Inicio=>(others=>'z'),
  308.         Final=>(others=>'z'),
  309.         Peaje_km=>42.0,
  310.         Trazado=>(Num => 0,Ptos => (others=>(100.0,100.0)))
  311.       )
  312.     )
  313.   )
  314. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement