tconstants.py 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. '''*****************************************************************************
  2. AToMPM - A Tool for Multi-Paradigm Modelling
  3. Copyright (c) 2011 Raphael Mannadiar (raphael.mannadiar@mail.mcgill.ca)
  4. This file is part of AToMPM.
  5. AToMPM is free software: you can redistribute it and/or modify it under the
  6. terms of the GNU Lesser General Public License as published by the Free Software
  7. Foundation, either version 3 of the License, or (at your option) any later
  8. version.
  9. AToMPM is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License along
  13. with AToMPM. If not, see <http://www.gnu.org/licenses/>.
  14. *****************************************************************************'''
  15. class TConstants :
  16. #possible completion statuses
  17. NOT_APPLICABLE = 'NotApplicable'
  18. SUCCEEDED = 'Success'
  19. FAILED = 'Failure'
  20. ''' hergin :: motif-integration :: start '''
  21. EXCEPTION = 'Exception'
  22. RULE_EXCEPTION_MSG = 'EXCEPTION :: rule exception on '
  23. MODE_DEBUG = 'debug'
  24. MODE_RELEASE = 'release'
  25. ''' hergin :: motif-integration :: end '''
  26. #inter-rule delay in PLAY mode
  27. INTER_RULE_DELAY = 0.05
  28. #the delay between verifications that all changelogs pertaining to the last executed rule have been handled
  29. WAIT_ON_CHLOG_DELAY = 0.02
  30. #console output for various rule/transformation completion cases
  31. RULE_SUCCESS_MSG = 'rule succeeded'
  32. ''' hergin :: motif-integration :: modify fail message '''
  33. RULE_FAILURE_MSG = 'rule failed'
  34. RULE_NOT_APPLICABLE_MSG = 'WARNING :: rule was not applicable'
  35. TRANSFORMATION_DONE = 'transformation(s) terminated with status :: '
  36. TRANSFORMATION_STOPPED = 'transformation stopped'
  37. REMOTE_APPLICATION_FAILURE = 'ERROR :: rule effects could not be applied :: '
  38. NO_NEXT_RULE = 'ERROR :: failed to choose next rule :: '
  39. #console output for various debugging messages
  40. DEBUGGING_ON = 'transformation debugging has been enabled'
  41. DEBUGGING_OFF = 'transformation debugging has been disabled'
  42. DEBUGGING_HALT = 'WARNING :: popping up transformation debugging window,'+\
  43. ' resume transformation with "play" or "step" buttons'+\
  44. ' from current window'
  45. #supported designer code languages
  46. JAVASCRIPT = 'JAVASCRIPT'
  47. PYTHON = 'PYTHON'
  48. #metamodel paths
  49. RULEMM = '/Formalisms/__Transformations__/TransformationRule/'+\
  50. 'TransformationRule'
  51. TRANSFMM = '/Formalisms/__Transformations__/Transformation/Transformation'
  52. ''' hergin :: motif-integration '''
  53. MOTIFMM = '/Formalisms/__Transformations__/Transformation/MoTif'
  54. TCOREMM = '/Formalisms/__Transformations__/Transformation/T-Core'