| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- # Copyright 2023 Modelling, Simulation and Design Lab (MSDL)
- # at the University of Antwerp (http://msdl.uantwerpen.be/).
- #
- # Licensed under the GNU Public License v3 (the "License");
- # you may not use this file except in compliance with the
- # License. You may obtain a copy of the License at
- # https://www.gnu.org/licenses/gpl-3.0.en.html
- #
- # Unless required by applicable law or agreed to in writing,
- # software distributed under the License is distributed on an
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- # either express or implied. See the License for the specific
- # language governing permissions and limitations under the
- # License.
- class TConstants :
- #possible completion statuses
- NOT_APPLICABLE = 'NotApplicable'
- SUCCEEDED = 'Success'
- FAILED = 'Failure'
- ''' hergin :: motif-integration :: start '''
- EXCEPTION = 'Exception'
- RULE_EXCEPTION_MSG = 'EXCEPTION :: rule exception on '
- MODE_DEBUG = 'debug'
- MODE_RELEASE = 'release'
- ''' hergin :: motif-integration :: end '''
- #inter-rule delay in PLAY mode
- INTER_RULE_DELAY = 0.05
- #the delay between verifications that all changelogs pertaining to the last executed rule have been handled
- WAIT_ON_CHLOG_DELAY = 0.02
- #console output for various rule/transformation completion cases
- RULE_SUCCESS_MSG = 'rule succeeded'
- ''' hergin :: motif-integration :: modify fail message '''
- RULE_FAILURE_MSG = 'rule failed'
- RULE_NOT_APPLICABLE_MSG = 'WARNING :: rule was not applicable'
- TRANSFORMATION_DONE = 'transformation(s) terminated with status :: '
- TRANSFORMATION_STOPPED = 'transformation stopped'
- REMOTE_APPLICATION_FAILURE = 'ERROR :: rule effects could not be applied :: '
- NO_NEXT_RULE = 'ERROR :: failed to choose next rule :: '
- #console output for various debugging messages
- DEBUGGING_ON = 'transformation debugging has been enabled'
- DEBUGGING_OFF = 'transformation debugging has been disabled'
- DEBUGGING_HALT = 'WARNING :: popping up transformation debugging window,'+ \
- ' resume transformation with "play" or "step" buttons'+ \
- ' from current window'
- #supported designer code languages
- JAVASCRIPT = 'JAVASCRIPT'
- PYTHON = 'PYTHON'
- #metamodel paths
- RULEMM = '/Formalisms/__Transformations__/TransformationRule/'+ \
- 'TransformationRule'
- TRANSFMM = '/Formalisms/__Transformations__/Transformation/Transformation'
- ''' hergin :: motif-integration '''
- MOTIFMM = '/Formalisms/__Transformations__/Transformation/MoTif'
- TCOREMM = '/Formalisms/__Transformations__/Transformation/T-Core'
|