Constraints.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/usr/bin/env python
  2. class SpacingConstraints:
  3. def __init__(self):
  4. self.WtcSpacing = {}
  5. self.WtcSpacing['L'] = {}
  6. self.WtcSpacing['M'] = {}
  7. self.WtcSpacing['H'] = {}
  8. self.WtcSpacing['J'] = {}
  9. self.WtcSpacing['L']['L'] = 3.0
  10. self.WtcSpacing['L']['M'] = 3.0
  11. self.WtcSpacing['L']['H'] = 3.0
  12. self.WtcSpacing['L']['J'] = 3.0
  13. self.WtcSpacing['M']['L'] = 5.0
  14. self.WtcSpacing['M']['M'] = 3.0
  15. self.WtcSpacing['M']['H'] = 3.0
  16. self.WtcSpacing['M']['J'] = 3.0
  17. self.WtcSpacing['H']['L'] = 6.0
  18. self.WtcSpacing['H']['M'] = 5.0
  19. self.WtcSpacing['H']['H'] = 4.0
  20. self.WtcSpacing['H']['J'] = 4.0
  21. self.WtcSpacing['J']['L'] = 8.0
  22. self.WtcSpacing['J']['M'] = 7.0
  23. self.WtcSpacing['J']['H'] = 6.0
  24. self.WtcSpacing['J']['J'] = 6.0
  25. self.RecatSpacing = {}
  26. self.RecatSpacing['A'] = {}
  27. self.RecatSpacing['B'] = {}
  28. self.RecatSpacing['C'] = {}
  29. self.RecatSpacing['D'] = {}
  30. self.RecatSpacing['E'] = {}
  31. self.RecatSpacing['F'] = {}
  32. self.RecatSpacing['A']['A'] = 3.0
  33. self.RecatSpacing['A']['B'] = 3.0
  34. self.RecatSpacing['A']['C'] = 3.0
  35. self.RecatSpacing['A']['D'] = 3.0
  36. self.RecatSpacing['A']['E'] = 3.0
  37. self.RecatSpacing['A']['F'] = 3.0
  38. self.RecatSpacing['B']['A'] = 4.0
  39. self.RecatSpacing['B']['B'] = 4.0
  40. self.RecatSpacing['B']['C'] = 4.0
  41. self.RecatSpacing['B']['D'] = 4.0
  42. self.RecatSpacing['B']['E'] = 4.0
  43. self.RecatSpacing['B']['F'] = 4.0
  44. self.RecatSpacing['C']['A'] = 5.0
  45. self.RecatSpacing['C']['B'] = 5.0
  46. self.RecatSpacing['C']['C'] = 5.0
  47. self.RecatSpacing['C']['D'] = 5.0
  48. self.RecatSpacing['C']['E'] = 5.0
  49. self.RecatSpacing['C']['F'] = 5.0
  50. self.RecatSpacing['D']['A'] = 6.0
  51. self.RecatSpacing['D']['B'] = 4.0
  52. self.RecatSpacing['D']['C'] = 3.0
  53. self.RecatSpacing['D']['D'] = 3.0
  54. self.RecatSpacing['D']['E'] = 2.5
  55. self.RecatSpacing['D']['F'] = 2.5
  56. self.RecatSpacing['E']['A'] = 7.0
  57. self.RecatSpacing['E']['B'] = 5.0
  58. self.RecatSpacing['E']['C'] = 4.0
  59. self.RecatSpacing['E']['D'] = 4.0
  60. self.RecatSpacing['E']['E'] = 3.0
  61. self.RecatSpacing['E']['F'] = 3.0
  62. self.RecatSpacing['F']['A'] = 8.0
  63. self.RecatSpacing['F']['B'] = 6.0
  64. self.RecatSpacing['F']['C'] = 5.0
  65. self.RecatSpacing['F']['D'] = 5.0
  66. self.RecatSpacing['F']['E'] = 4.0
  67. self.RecatSpacing['F']['F'] = 3.0