Guest User

Untitled

a guest
Jan 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. query "distributeFaces" (long pSpmaId, long pFarrId)
  2. $om: OptimizationMetadata( prepare == true )
  3. (or
  4. (
  5. // stat, dist, comu, city via spma (Matrix)
  6. $spma: SubPlanningMatrixOpt ( farrId != null, areaId == null, spmaId == pSpmaId, comuId != null ) and
  7. $pmb : PossibleMediumBookingOpt( suplId == $spma.suplId , comuId == $spma.comuId ) and
  8. $mfo : MediumFaceOpt(mediId == $pmb.mediId, farrId == $spma.farrId,
  9. range.containsAnyRate($pmb.getRatedPossibleRanges()))
  10. )
  11. (
  12. // stat, dist, comu, city via spma (Matrix)
  13. $spma: SubPlanningMatrixOpt ( farrId != null, areaId == null, spmaId == pSpmaId, distId != null ) and
  14. $mlo : MediumLocationOpt( distId == $spma.distId) and
  15. $pmb : PossibleMediumBookingOpt( suplId == $spma.suplId , mediId == $mlo.mediId ) and
  16. $mfo : MediumFaceOpt(mediId == $mlo.mediId, farrId == $spma.farrId,
  17. range.containsAnyRate($pmb.getRatedPossibleRanges()))
  18. )
  19. (
  20. // stat, dist, comu, city via spma (Matrix)
  21. $spma: SubPlanningMatrixOpt ( farrId != null, areaId == null, spmaId == pSpmaId, cityId != null ) and
  22. $mlo : MediumLocationOpt( cityId == $spma.cityId) and
  23. $pmb : PossibleMediumBookingOpt( suplId == $spma.suplId , mediId == $mlo.mediId ) and
  24. $mfo : MediumFaceOpt(mediId == $mlo.mediId, farrId == $spma.farrId,
  25. range.containsAnyRate($pmb.getRatedPossibleRanges()))
  26. )
  27. (
  28. // stat, dist, comu, city via spma (Matrix)
  29. $spma: SubPlanningMatrixOpt ( farrId != null, areaId == null, spmaId == pSpmaId, statId != null ) and
  30. $mlo : MediumLocationOpt( statId == $spma.statId) and
  31. $pmb : PossibleMediumBookingOpt( suplId == $spma.suplId , mediId == $mlo.mediId ) and
  32. $mfo : MediumFaceOpt(mediId == $mlo.mediId, farrId == $spma.farrId,
  33. range.containsAnyRate($pmb.getRatedPossibleRanges()))
  34. )
  35. )
  36. end
Add Comment
Please, Sign In to add comment