tconstants.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. '''This file is part of AToMPM - A Tool for Multi-Paradigm Modelling
  2. Copyright 2011 by the AToMPM team and licensed under the LGPL
  3. See COPYING.lesser and README.md in the root of this project for full details'''
  4. class TConstants :
  5. #possible completion statuses
  6. NOT_APPLICABLE = 'NotApplicable'
  7. SUCCEEDED = 'Success'
  8. FAILED = 'Failure'
  9. ''' hergin :: motif-integration :: start '''
  10. EXCEPTION = 'Exception'
  11. RULE_EXCEPTION_MSG = 'EXCEPTION :: rule exception on '
  12. MODE_DEBUG = 'debug'
  13. MODE_RELEASE = 'release'
  14. ''' hergin :: motif-integration :: end '''
  15. #inter-rule delay in PLAY mode
  16. INTER_RULE_DELAY = 0.05
  17. #the delay between verifications that all changelogs pertaining to the last executed rule have been handled
  18. WAIT_ON_CHLOG_DELAY = 0.02
  19. #console output for various rule/transformation completion cases
  20. RULE_SUCCESS_MSG = 'rule succeeded'
  21. ''' hergin :: motif-integration :: modify fail message '''
  22. RULE_FAILURE_MSG = 'rule failed'
  23. RULE_NOT_APPLICABLE_MSG = 'WARNING :: rule was not applicable'
  24. TRANSFORMATION_DONE = 'transformation(s) terminated with status :: '
  25. TRANSFORMATION_STOPPED = 'transformation stopped'
  26. REMOTE_APPLICATION_FAILURE = 'ERROR :: rule effects could not be applied :: '
  27. NO_NEXT_RULE = 'ERROR :: failed to choose next rule :: '
  28. #console output for various debugging messages
  29. DEBUGGING_ON = 'transformation debugging has been enabled'
  30. DEBUGGING_OFF = 'transformation debugging has been disabled'
  31. DEBUGGING_HALT = 'WARNING :: popping up transformation debugging window,'+ \
  32. ' resume transformation with "play" or "step" buttons'+ \
  33. ' from current window'
  34. #supported designer code languages
  35. JAVASCRIPT = 'JAVASCRIPT'
  36. PYTHON = 'PYTHON'
  37. #metamodel paths
  38. RULEMM = '/Formalisms/__Transformations__/TransformationRule/'+ \
  39. 'TransformationRule'
  40. TRANSFMM = '/Formalisms/__Transformations__/Transformation/Transformation'
  41. ''' hergin :: motif-integration '''
  42. MOTIFMM = '/Formalisms/__Transformations__/Transformation/MoTif'
  43. TCOREMM = '/Formalisms/__Transformations__/Transformation/T-Core'