tconstants.py 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 2023 Modelling, Simulation and Design Lab (MSDL)
  2. # at the University of Antwerp (http://msdl.uantwerpen.be/).
  3. #
  4. # Licensed under the GNU Public License v3 (the "License");
  5. # you may not use this file except in compliance with the
  6. # License. You may obtain a copy of the License at
  7. # https://www.gnu.org/licenses/gpl-3.0.en.html
  8. #
  9. # Unless required by applicable law or agreed to in writing,
  10. # software distributed under the License is distributed on an
  11. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  12. # either express or implied. See the License for the specific
  13. # language governing permissions and limitations under the
  14. # License.
  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'