1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138 |
- class SCCD_ASG_Mapper(object):
- def __init__(self):
- self.metamodel_location = 'protected.formalisms.SCCD'
- self.metamodel_path = 'sccd_modelverse_sources/sccd_metamodel.mtn'
- self.rules = {
- 'sccd': {'name': 'SCCD',
- 'type': 'Model',
- 'body':
- {
- 'name': ('attrname.string','String'),
- 'author': ('attrauthor.string','String'),
- 'description': ('attrdescription.string','String')
- }
- },
- 'class': {
- 'name': 'Class',
- 'type': 'Class',
- 'body':
- {
- 'name': ('nameattr.string','String'),
- 'default': ('defaultattr.boolean','Boolean')
- }
- },
- 'inheritance': { 'name': 'Inheritance',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'inheritance_', ['getNodeId']],
- 'priority': ('priorityattr.integer','Integer'),
- 'class': ('classattr.string','String')
- }
- },
- 'association': { 'name': 'Association',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'association_', ['getNodeId']],
- 'name': ('nameattr.string','String'),
- 'class': ('classattr.string','String'),
- 'min': ('minattr.integer','Integer'),
- 'max': ('maxattr.integer','Integer')
- }
- },
- 'composition': { 'name': 'Composition',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'composition_', ['getNodeId']],
- 'class': ('classattr.string','String'),
- 'min': ('minattr.integer','Integer'),
- 'max': ('maxattr.integer','Integer')
- }
- },
- 'aggregation': { 'name': 'Aggregation',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'aggregation_', ['getNodeId']],
- 'class': ('classattr.string','String'),
- 'min': ('minattr.integer','Integer'),
- 'max': ('maxattr.integer','Integer')
- }
- },
- 'attribute': { 'name': 'Attribute',
- 'type': 'Class',
- 'body':
- {
- 'name': ('nameattr.string','String'),
- 'type': ('typenameattr.string','String'),
- 'default': ('defaultvalueattr.string','String')
- }
- },
- 'top': { 'name': 'Top',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'top_', ['getNodeId']]
- }
- },
- 'bottom': { 'name': 'Bottom',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'bottom_', ['getNodeId']]
- }
- },
- 'constructor': { 'name': 'Constructor',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'constructor_', ['getNodeId']]
- }
- },
- 'destructor': { 'name': 'Destructor',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'destructor_', ['getNodeId']]
- }
- },
- 'method': { 'name': 'Method',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'method_', ['getNodeId']],
- 'name': ('methodname.name', 'String')
- }
- },
- 'body': {
- 'name': 'ActionBlock',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'body_', ['getNodeId']]
- }
- },
- 'onenter': {
- 'name': 'OnEnter',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'onenter_', ['getNodeId']]
- }
- },
- 'onexit': {
- 'name': 'OnExit',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'onexit_', ['getNodeId']]
- }
- },
- 'import': { 'name': 'Import',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'import_', ['getNodeId']],
- 'location': ('importname.dotted_name','String'),
- 'from': ('fromname.dotted_name','String'),
- 'as': ('asname.name','String')
- }
- },
- 'decl_stm': { 'name': 'Declaration',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'declaration_', ['getNodeId']],
- 'name': ('decl_name.name','String')
- }
- },
- 'assignment': { 'name': 'PlainAssignment',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'plainassignment_', ['getNodeId']]
- }
- },
- 'plusassign': { 'name': 'PlusAssignment',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'plusassignment_', ['getNodeId']]
- }
- },
- 'minusassign': { 'name': 'MinusAssignment',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'minusassignment_', ['getNodeId']]
- }
- },
- 'funccall_stm': {
- 'name': 'MethodCallStm',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'methodcallstm_', ['getNodeId']],
- 'name': ('functionname','String')
- }
- },
- 'nav_expr': {
- 'name': 'NavigationExpression',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'nav_', ['getNodeId']]
- }
- },
- 'self': {
- 'name': 'SelfExpression',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'selfexpression_', ['getNodeId']]
- }
- },
- 'dotexpression': {
- 'name': 'DotExpression',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'dotexpression_', ['getNodeId']],
- 'path': ('dotexpression.dotted_name','String')
- }
- },
- 'funccall_expr': {
- 'name': 'MethodCall',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'methodcall_', ['getNodeId']],
- 'name': ('functionname','String')
- }
- },
- 'stringvalue': {
- 'name': 'StringValue',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'string_', ['getNodeId']],
- 'value': ('stringvalue.string','String')
- }
- },
- 'integervalue': {
- 'name': 'IntegerValue',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'integer_', ['getNodeId']],
- 'value': ('integervalue.integer','Integer')
- }
- },
- 'floatvalue': {
- 'name': 'FloatValue',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'float_', ['getNodeId']],
- 'value': ('floatvalue.float','Float')
- }
- },
- 'booleanvalue': {
- 'name': 'BooleanValue',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'boolean_', ['getNodeId']],
- 'value': ('booleanvalue.boolean','Boolean')
- }
- },
- 'argument': {
- 'name': 'Argument',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'argument_', ['getNodeId']],
- 'name': ('argumentname','String')
- }
- },
- 'formalparameter': {
- 'name': 'Parameter',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'parameter_', ['getNodeId']],
- 'name': ('namevalue.name','String'),
- 'default': ('defaultvalue.atomvalue','String')
- }
- },
- 'statemachine': { 'name': 'StateMachine',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'statemachine_', ['getNodeId']]
- }
- },
- 'state': { 'name': 'State',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'state_', ['getNodeId']],
- 'name': ('statename.string','String')
- }
- },
- 'orthogonal': { 'name': 'OrthogonalComponent',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'orthogonal_', ['getNodeId']],
- 'name': ('statename.string','String')
- }
- },
- 'initial': { 'name': 'InitialState',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'initial_', ['getNodeId']],
- 'name': ('statename.string','String')
- }
- },
- 'final': { 'name': 'FinalState',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'final_', ['getNodeId']],
- 'name': ('statename.string','String')
- }
- },
- 'history': { 'name': 'HistoryState',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'history_', ['getNodeId']],
- 'name': ('statename.string','String')
- }
- },
- 'inport': { 'name': 'InPort',
- 'type': 'Class',
- 'body':
- {
- 'name': ('nameattr.string','String')
- }
- },
- 'transition': { 'name': 'Transition',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'transition_', ['getNodeId']],
- 'target': ('targetattr.string','String'),
- 'after': ('afterattr.float','Float'),
- 'portname': ('portattr.string','String')
- }
- },
- 'after_expression': {
- 'name': 'after_expression',
- 'type': 'Association',
- 'source': { 'name': 'Transition', 'type': 'Transition' },
- 'target': { 'name': 'Expression', 'type': 'Expression' },
- 'condition': ['direct', '@Transition', '@Expression'],
- 'body': {
- 'name': ['concat','transition_after_expression_', ['concat','@Transition.id','@Expression.id']]
- }
- },
-
- 'event': { 'name': 'Event',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'event_', ['getNodeId']],
- 'name': ('namevalue.name','String')
- }
- },
- 'guard': { 'name': 'Guard',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'guard_', ['getNodeId']]
- }
- },
- 'raise': { 'name': 'Raise',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'raise_', ['getNodeId']]
- }
- },
- 'scopeattr': { 'name': 'Scope',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'scopeattr_', ['getNodeId']]
- }
- },
- 'targetattr': { 'name': 'Target',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'targetattr_', ['getNodeId']]
- }
- },
- 'return_stm': { 'name': 'Return',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'return_', ['getNodeId']]
- }
- },
- 'continue_stm': { 'name': 'Continue',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'continue_', ['getNodeId']]
- }
- },
- 'break_stm': { 'name': 'Break',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'break_', ['getNodeId']]
- }
- },
- 'while_stm': { 'name': 'While',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'while_', ['getNodeId']]
- }
- },
- 'ifelse_stm': { 'name': 'IfElse',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'ifelse_', ['getNodeId']]
- }
- },
- 'statementbody': {
- 'name': 'ActionBlock',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'statementbody_', ['getNodeId']]
- }
- },
- 'parexpr': { 'name': 'Parenthesis',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'parexpr_', ['getNodeId']]
- }
- },
- 'notexpr': { 'name': 'Not',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'notexpr_', ['getNodeId']]
- }
- },
- 'minusexpr': { 'name': 'Minus',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'minusexpr_', ['getNodeId']]
- }
- },
- 'andexpr': { 'name': 'And',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'andexpr_', ['getNodeId']]
- }
- },
- 'orexpr': { 'name': 'Or',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'orexpr_', ['getNodeId']]
- }
- },
- 'equalsexpr': { 'name': 'Equal',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'equalsexpr_', ['getNodeId']]
- }
- },
- 'nequalsexpr': { 'name': 'NEqual',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'nequalsexpr_', ['getNodeId']]
- }
- },
- 'leqthanexpr': { 'name': 'LEThan',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'leqthanexpr_', ['getNodeId']]
- }
- },
- 'lthanexpr': { 'name': 'LThan',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'lthanexpr_', ['getNodeId']]
- }
- },
- 'geqthanexpr': { 'name': 'GEThan',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'geqthanexpr_', ['getNodeId']]
- }
- },
- 'gthanexpr': { 'name': 'GThan',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'gthanexpr_', ['getNodeId']]
- }
- },
- 'modexpr': { 'name': 'Mod',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'modexpr_', ['getNodeId']]
- }
- },
- 'divexpr': { 'name': 'Div',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'divexpr_', ['getNodeId']]
- }
- },
- 'multexpr': { 'name': 'Mult',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'multexpr_', ['getNodeId']]
- }
- },
- 'sumexpr': { 'name': 'Add',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'sumexpr_', ['getNodeId']]
- }
- },
- 'subtractionexpr': { 'name': 'Subtract',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'subtractionexpr_', ['getNodeId']]
- }
- },
- 'selection': { 'name': 'Selection',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'selection_', ['getNodeId']]
- }
- },
- 'dict': { 'name': 'Dict',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'dict_', ['getNodeId']]
- }
- },
- 'dictitem': { 'name': 'DictArgument',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'dictitem_', ['getNodeId']]
- }
- },
- 'vector': { 'name': 'Array',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'array_', ['getNodeId']]
- }
- },
- 'vectoritem': { 'name': 'RegularArgument',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'vectoritem_', ['getNodeId']]
- }
- },
- 'tuple': { 'name': 'Tuple',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'tuple_', ['getNodeId']]
- }
- },
- 'tuplearg': { 'name': 'RegularArgument',
- 'type': 'Class',
- 'body':
- {
- 'id': ['concat', 'tuplearg_', ['getNodeId']]
- }
- },
- 'selfexpression_dotexpression': {
- 'name': 'selfexpression_dotexpression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'SelfExpression' },
- 'target': { 'name': 'b', 'type': 'AbsNavigationExpression' },
- 'condition': ['nextTo', '@a', '@b'],
- 'body': {
- 'name': ['concat','selfexpression_dotexpression_', ['concat','@a.id','@b.id']]
- }
- },
- 'navigationexpression_absnavigationexpression': {
- 'name': 'navigationexpression_absnavigationexpression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'NavigationExpression' },
- 'target': { 'name': 'b', 'type': 'AbsNavigationExpression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','navigationexpression_absnavigationexpression_', ['concat','@a.id','@b.id']]
- }
- },
- 'class_attribute': {
- 'name': 'class_attribute',
- 'type': 'Association',
- 'source': { 'name': 'Class', 'type': 'Class' },
- 'target': { 'name': 'Attribute', 'type': 'Attribute' },
- 'condition': ['direct', '@Class', '@Attribute'],
- 'body': {
- 'name': ['concat','class_attribute_', ['concat','@Class.name','@Attribute.name']]
- }
- },
- 'class_relationship': {
- 'name': 'class_relationship',
- 'type': 'Association',
- 'source': { 'name': 'Class', 'type': 'Class' },
- 'target': { 'name': 'Relationship', 'type': 'Relationship' },
- 'condition': ['direct', '@Class', '@Relationship'],
- 'body': {
- 'name': ['concat','class_relationship_', ['concat','@Class.name','@Relationship.id']]
- }
- },
- 'class_inport': {
- 'name': 'class_inport',
- 'type': 'Association',
- 'source': { 'name': 'Class', 'type': 'Class' },
- 'target': { 'name': 'InPort', 'type': 'InPort' },
- 'condition': ['direct', '@Class', '@InPort'],
- 'body': {
- 'name': ['concat','class_inport', ['concat','@Class.name','@InPort.name']]
- }
- },
- 'transition_inport': {
- 'name': 'transition_inport',
- 'type': 'Association',
- 'source': { 'name': 'Transition', 'type': 'Transition' },
- 'target': { 'name': 'InPort', 'type': 'InPort' },
- 'condition': ['equals', '@InPort.name', '@Transition.portname'],
- 'body': {
- 'name': ['concat','transition_inport_', ['concat','@InPort.name','@Transition.id']]
- }
- },
- 'transition_event_trigger': {
- 'name': 'transition_event_trigger',
- 'type': 'Association',
- 'source': { 'name': 'Transition', 'type': 'Transition' },
- 'target': { 'name': 'Event', 'type': 'Event' },
- 'condition': ['direct', '@Transition', '@Event'],
- 'body': {
- 'name': ['concat','transition_event_trigger_', ['concat','@Transition.id','@Event.id']]
- }
- },
- 'transition_guard': {
- 'name': 'transition_guard',
- 'type': 'Association',
- 'source': { 'name': 'Transition', 'type': 'Transition' },
- 'target': { 'name': 'Guard', 'type': 'Guard' },
- 'condition': ['direct', '@Transition', '@Guard'],
- 'body': {
- 'name': ['concat','transition_guard', ['concat','@Transition.id','@Guard.id']]
- }
- },
- 'transition_raise': {
- 'name': 'transition_raise',
- 'type': 'Association',
- 'source': { 'name': 'Transition', 'type': 'Transition' },
- 'target': { 'name': 'Raise', 'type': 'Raise' },
- 'condition': ['direct', '@Transition', '@Raise'],
- 'body': {
- 'name': ['concat','transition_raise_', ['concat','@Transition.id','@Raise.id']]
- }
- },
- 'guard_expression': {
- 'name': 'guard_expression',
- 'type': 'Association',
- 'source': { 'name': 'Guard', 'type': 'Guard' },
- 'target': { 'name': 'Expression', 'type': 'Expression' },
- 'condition': ['direct', '@Guard', '@Expression'],
- 'body': {
- 'name': ['concat','transition_event_trigger_', ['concat','@Guard.id','@Expression.id']]
- }
- },
- 'raise_methodcall': {
- 'name': 'raise_methodcall',
- 'type': 'Association',
- 'source': { 'name': 'Raise', 'type': 'Raise' },
- 'target': { 'name': 'MethodCall', 'type': 'MethodCall' },
- 'condition': ['direct', '@Raise', '@MethodCall'],
- 'body': {
- 'name': ['concat','raise_methodcall_', ['concat','@Raise.id','@MethodCall.id']]
- }
- },
- 'raise_scope': {
- 'name': 'raise_scope',
- 'type': 'Association',
- 'source': { 'name': 'Raise', 'type': 'Raise' },
- 'target': { 'name': 'Scope', 'type': 'Scope' },
- 'condition': ['direct', '@Raise', '@Scope'],
- 'body': {
- 'name': ['concat','raise_scope_', ['concat','@Raise.id','@Scope.id']]
- }
- },
- 'raise_target': {
- 'name': 'raise_target',
- 'type': 'Association',
- 'source': { 'name': 'Raise', 'type': 'Raise' },
- 'target': { 'name': 'Target', 'type': 'Target' },
- 'condition': ['direct', '@Raise', '@Target'],
- 'body': {
- 'name': ['concat','raise_target_', ['concat','@Raise.id','@Target.id']]
- }
- },
- 'scope_expression': {
- 'name': 'scope_expression',
- 'type': 'Association',
- 'source': { 'name': 'Scope', 'type': 'Scope' },
- 'target': { 'name': 'Expression', 'type': 'Expression' },
- 'condition': ['direct', '@Scope', '@Expression'],
- 'body': {
- 'name': ['concat','scope_expression_', ['concat','@Scope.id','@Expression.id']]
- }
- },
- 'target_expression': {
- 'name': 'target_expression',
- 'type': 'Association',
- 'source': { 'name': 'Target', 'type': 'Target' },
- 'target': { 'name': 'Expression', 'type': 'Expression' },
- 'condition': ['direct', '@Target', '@Expression'],
- 'body': {
- 'name': ['concat','target_expression_', ['concat','@Target.id','@Expression.id']]
- }
- },
- 'actionblock_statement': {
- 'name': 'actionblock_statement',
- 'type': 'Association',
- 'source': { 'name': 'ActionBlock', 'type': 'ActionBlock' },
- 'target': { 'name': 'Statement', 'type': 'Statement' },
- 'condition': ['first', '@ActionBlock', '@Statement'],
- 'body': {
- 'name': ['concat','actionblock_statement_', ['concat','@ActionBlock.id','@Statement.id']]
- }
- },
- 'statement_statement_next': {
- 'name': 'statement_statement_next',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Statement' },
- 'target': { 'name': 'b', 'type': 'Statement' },
- 'condition': ['nextTo', '@a', '@b'],
- 'body': {
- 'name': ['concat','statement_statement_next_', ['concat','@a.id','@b.id']]
- }
- },
- 'class_statemachine': {
- 'name': 'class_statemachine',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Class' },
- 'target': { 'name': 'b', 'type': 'StateMachine' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','class_statemachine_', ['concat','@a.name','@b.id']]
- }
- },
- 'statemachine_absstate': {
- 'name': 'statemachine_absstate',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'StateMachine' },
- 'target': { 'name': 'b', 'type': 'AbsState' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','statemachine_absstate_', ['concat','@a.id','@b.id']]
- }
- },
- 'statemachine_pseudostate': {
- 'name': 'statemachine_pseudostate',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'StateMachine' },
- 'target': { 'name': 'b', 'type': 'PseudoState' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','statemachine_pseudostate_', ['concat','@a.id','@b.id']]
- }
- },
- 'absstate_absstate_inner': {
- 'name': 'absstate_absstate_inner',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsState' },
- 'target': { 'name': 'b', 'type': 'AbsState' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absstate_absstate_inner_', ['concat','@a.id','@b.id']]
- }
- },
- 'statemachine_transition': {
- 'name': 'statemachine_transition',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'StateMachine' },
- 'target': { 'name': 'b', 'type': 'Transition' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','statemachine_transition', ['concat','@a.id','@b.id']]
- }
- },
- 'absstate_transition': {
- 'name': 'absstate_transition',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsState' },
- 'target': { 'name': 'b', 'type': 'Transition' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absstate_transition_', ['concat','@a.id','@b.id']]
- }
- },
- 'absstate_pseudostate': {
- 'name': 'absstate_pseudostate',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsState' },
- 'target': { 'name': 'b', 'type': 'PseudoState' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absstate_pseudostate_', ['concat','@a.id','@b.id']]
- }
- },
- 'class_method': {
- 'name': 'class_method',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Class' },
- 'target': { 'name': 'b', 'type': 'AbsMethod' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','class_method_', ['concat','@a.name','@b.id']]
- }
- },
- 'absmethod_body': {
- 'name': 'absmethod_actionblock_body',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsMethod' },
- 'target': { 'name': 'b', 'type': 'ActionBlock' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absmethod_actionblock_body', ['concat','@a.id','@b.id']]
- }
- },
- 'methodcall_sender': {
- 'name': 'methodcall_sender',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsMethodCall' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','methodcall_sender', ['concat','@a.id','@b.id']]
- }
- },
- 'methodcall_argument': {
- 'name': 'methodcall_argument',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsMethodCall' },
- 'target': { 'name': 'b', 'type': 'Argument' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','methodcall_argument_', ['concat','@a.id','@b.id']]
- }
- },
- 'argument_value': {
- 'name': 'argument_value',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Argument' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','argument_value_', ['concat','@a.id','@b.id']]
- }
- },
- 'argument_argument_next': {
- 'name': 'argument_argument_next',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Argument' },
- 'target': { 'name': 'b', 'type': 'Argument' },
- 'condition': ['nextTo', '@a', '@b'],
- 'body': {
- 'name': ['concat','argument_argument_next_', ['concat','@a.id','@b.id']]
- }
- },
- 'declaration_navigationexpression_type': {
- 'name': 'declaration_navigationexpression_type',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Declaration' },
- 'target': { 'name': 'b', 'type': 'NavigationExpression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','declaration_navigationexpression_type_', ['concat','@a.id','@b.id']]
- }
- },
- 'declaration_expression_init': {
- 'name': 'declaration_expression_init',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Declaration' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['second', '@a', '@b'],
- 'body': {
- 'name': ['concat','declaration_expression_init_', ['concat','@a.id','@b.id']]
- }
- },
- 'event_parameter': {
- 'name': 'event_parameter',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Event' },
- 'target': { 'name': 'b', 'type': 'Parameter' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','event_parameter_', ['concat','@a.id','@b.id']]
- }
- },
- 'absmethod_parameter': {
- 'name': 'absmethod_parameter',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsMethod' },
- 'target': { 'name': 'b', 'type': 'Parameter' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','absmethod_parameter_', ['concat','@a.id','@b.id']]
- }
- },
- 'parameter_parameter_next': {
- 'name': 'parameter_parameter_next',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Parameter' },
- 'target': { 'name': 'b', 'type': 'Parameter' },
- 'condition': ['nextTo', '@a', '@b'],
- 'body': {
- 'name': ['concat','parameter_parameter_next_', ['concat','@a.id','@b.id']]
- }
- },
- 'parameter_type_expression': {
- 'name': 'parameter_type_expression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Parameter' },
- 'target': { 'name': 'b', 'type': 'NavigationExpression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','parameter_type_expression_', ['concat','@a.id','@b.id']]
- }
- },
- 'assignment_expression_left': {
- 'name': 'assignment_expression_left',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Assignment' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','assignment_expression_left_', ['concat','@a.id','@b.id']]
- }
- },
- 'assignment_expression_right': {
- 'name': 'assignment_expression_right',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Assignment' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['second', '@a', '@b'],
- 'body': {
- 'name': ['concat','assignment_expression_right_', ['concat','@a.id','@b.id']]
- }
- },
- 'while_expression_condition': {
- 'name': 'while_expression_condition',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'While' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','while_expression_condition_', ['concat','@a.id','@b.id']]
- }
- },
- 'while_body': {
- 'name': 'while_actionblock_body',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'While' },
- 'target': { 'name': 'b', 'type': 'ActionBlock' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','while_actionblock_body_', ['concat','@a.id','@b.id']]
- }
- },
- 'ifelse_expression_condition': {
- 'name': 'ifelse_expression_condition',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'IfElse' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','ifelse_expression_condition_', ['concat','@a.id','@b.id']]
- }
- },
- 'if_body': {
- 'name': 'ifelse_actionblock_ifbody',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'IfElse' },
- 'target': { 'name': 'b', 'type': 'ActionBlock' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','ifelse_actionblock_ifbody_', ['concat','@a.id','@b.id']]
- }
- },
- 'else_body': {
- 'name': 'ifelse_actionblock_elsebody',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'IfElse' },
- 'target': { 'name': 'b', 'type': 'ActionBlock' },
- 'condition': ['second', '@a', '@b'],
- 'body': {
- 'name': ['concat','ifelse_actionblock_elsebody_', ['concat','@a.id','@b.id']]
- }
- },
- 'transition_actionblock': {
- 'name': 'transition_actionblock',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Transition' },
- 'target': { 'name': 'b', 'type': 'ActionBlock' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','transition_actionblock_', ['concat','@a.id','@b.id']]
- }
- },
- 'absstate_onenter': {
- 'name': 'absstate_onenter',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsState' },
- 'target': { 'name': 'b', 'type': 'OnEnter' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absstate_onenter_', ['concat','@a.id','@b.id']]
- }
- },
- 'absstate_onexit': {
- 'name': 'absstate_onexit',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'AbsState' },
- 'target': { 'name': 'b', 'type': 'OnExit' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','absstate_onexit_', ['concat','@a.id','@b.id']]
- }
- },
- 'binop_expression_left': {
- 'name': 'binop_expression_left',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Binop' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','binop_expression_left_', ['concat','@a.id','@b.id']]
- }
- },
- 'binop_expression_right': {
- 'name': 'binop_expression_right',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Binop' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['second', '@a', '@b'],
- 'body': {
- 'name': ['concat','binop_expression_right_', ['concat','@a.id','@b.id']]
- }
- },
- 'composite_compositeargument': {
- 'name': 'composite_compositeargument',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Composite' },
- 'target': { 'name': 'b', 'type': 'CompositeArgument' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','composite_compositeargument_', ['concat','@a.id','@b.id']]
- }
- },
- 'regularargument_expression': {
- 'name': 'regularargument_expression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'RegularArgument' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['direct', '@a', '@b'],
- 'body': {
- 'name': ['concat','regularargument_expression_', ['concat','@a.id','@b.id']]
- }
- },
- 'dictargument_expression': {
- 'name': 'dictargument_expression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'DictArgument' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['second', '@a', '@b'],
- 'body': {
- 'name': ['concat','dictargument_expression_', ['concat','@a.id','@b.id']]
- }
- },
- 'dictargument_labelexpression': {
- 'name': 'dictargument_labelexpression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'DictArgument' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','dictargument_labelexpression_', ['concat','@a.id','@b.id']]
- }
- },
- 'compositeargument_compositeargument_next': {
- 'name': 'compositeargument_compositeargument_next',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'CompositeArgument' },
- 'target': { 'name': 'b', 'type': 'CompositeArgument' },
- 'condition': ['nextTo', '@a', '@b'],
- 'body': {
- 'name': ['concat','compositeargument_compositeargument_next_', ['concat','@a.id','@b.id']]
- }
- },
- 'unop_expression': {
- 'name': 'unop_expression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Unop' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','unop_expression_', ['concat','@a.id','@b.id']]
- }
- },
- 'return_expression': {
- 'name': 'return_expression',
- 'type': 'Association',
- 'source': { 'name': 'a', 'type': 'Return' },
- 'target': { 'name': 'b', 'type': 'Expression' },
- 'condition': ['first', '@a', '@b'],
- 'body': {
- 'name': ['concat','return_expression_', ['concat','@a.id','@b.id']]
- }
- }
- }
|