Don't like ads? PRO users don't see any ads ;-)
Guest

FD.impl

By: cardel on Jun 30th, 2012  |  syntax: Oz  |  size: 0.73 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. declare
  2.  
  3. proc{Ensayo1 Escenas}
  4.    {Tuple.make solucion 3 Escenas}
  5.    OrdenEscenas={FD.tuple ordenEscenas 4 1#4}
  6.    TurnoEscenas={FD.tuple turnoEscenas 4 1#4}
  7.    Tabla = {Tuple.make tabla 4}
  8.  
  9.    {For 1 4 1 proc{$ P} Tabla.P={FD.tuple {VirtualString.toAtom "actor"#P} 4 0#1} end}
  10. in
  11.    Escenas.1=OrdenEscenas
  12.    Escenas.2=TurnoEscenas
  13.    Escenas.3=Tabla
  14.    {FD.distinct OrdenEscenas}
  15.    {FD.distinct TurnoEscenas}
  16.  
  17.    {For 1 4 1
  18.     proc{$I}
  19.        {For 1 4 1
  20.         proc{$ J}
  21.            {FD.impl {FD.reified.int J OrdenEscenas.I} {FD.reified.int I TurnoEscenas.J} Tabla.I.J}
  22.         end}
  23.     end}
  24.  
  25.    {For 1 4 1 proc{$ I} {FD.distribute ff Tabla.I} end}
  26.    {FD.distribute split Escenas.2}
  27.  
  28. end
  29.  
  30. {ExploreOne Ensayo1}