123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531 |
- {
- "types": {
- "__pState": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "name",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "initial",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "current",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pInterrupt": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "at",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "event",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "current",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pTimedTransition": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "after",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pInterruptTransition": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "interrupt",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pTime": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "clock",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pAbstractInterrupt": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "current",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pNext": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pEnd": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "current",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pVisualisation": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "red",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "yellow",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "green",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pVisualisedBy": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ]
- },
- "constraints": [
- {
- "name": "noAbstractInstances",
- "event": "pre-create",
- "code": "/* comment next line to enable this constraint */\nthrow \"IgnoredConstraint\"\nfalse",
- "targetType": "AbstractInterrupt"
- }
- ],
- "actions": [
- {
- "name": "distinctPLabels",
- "event": "post-create",
- "code": "if( getAttr(\"__pLabel\") == \"\" )\n{\n\tvar pLabels = getAllNodes().\n\t\t\t\t\t\t\tfilter( function(n) {return hasAttr(\"__pLabel\",n);} ).\n\t\t\t\t\t\t\t\tmap( function(n) {return getAttr(\"__pLabel\",n);} ),\n\t\t i\t\t\t= \"0\";\n\n\twhile( _utils.contains(pLabels,i) )\n\t\ti = String(parseInt(i)+1);\n\tsetAttr(\"__pLabel\",i);\n}",
- "targetType": "*"
- }
- ],
- "cardinalities": {
- "__pState": [
- {
- "dir": ">",
- "type": "__pTimedTransition",
- "min": 0,
- "max": "1"
- },
- {
- "dir": ">",
- "type": "__pVisualisedBy",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pTimedTransition",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pTimedTransition",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pInterruptTransition",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pInterruptTransition",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pVisualisedBy",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pInterrupt": [
- {
- "dir": ">",
- "type": "__pNext",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "<",
- "type": "__pNext",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pNext",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pNext",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pTimedTransition": [
- {
- "dir": "in",
- "type": "__pState",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pState",
- "min": 0,
- "max": "1"
- }
- ],
- "__pInterruptTransition": [
- {
- "dir": "in",
- "type": "__pState",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pState",
- "min": 0,
- "max": "1"
- }
- ],
- "__pTime": [],
- "__pAbstractInterrupt": [
- {
- "dir": "<",
- "type": "__pNext",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "in",
- "type": "__pNext",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pNext": [
- {
- "dir": "in",
- "type": "__pInterrupt",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pAbstractInterrupt",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pInterrupt",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pEnd",
- "min": 0,
- "max": "1"
- }
- ],
- "__pEnd": [
- {
- "dir": "<",
- "type": "__pNext",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "in",
- "type": "__pNext",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pVisualisation": [
- {
- "dir": "in",
- "type": "__pVisualisedBy",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pVisualisedBy": [
- {
- "dir": "in",
- "type": "__pState",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pVisualisation",
- "min": 0,
- "max": "1"
- }
- ]
- },
- "legalConnections": {
- "__pState": {
- "__pState": [
- "__pTimedTransition",
- "__pInterruptTransition"
- ],
- "__pVisualisation": [
- "__pVisualisedBy"
- ]
- },
- "__pInterrupt": {
- "__pAbstractInterrupt": [
- "__pNext"
- ],
- "__pInterrupt": [
- "__pNext"
- ],
- "__pEnd": [
- "__pNext"
- ]
- }
- },
- "connectorTypes": {
- "__pTimedTransition": "visual",
- "__pInterruptTransition": "visual",
- "__pNext": "visual",
- "__pVisualisedBy": "visual"
- },
- "types2parentTypes": {
- "__pState": [],
- "__pInterrupt": [
- "__pAbstractInterrupt"
- ],
- "__pTimedTransition": [],
- "__pInterruptTransition": [],
- "__pTime": [],
- "__pAbstractInterrupt": [],
- "__pNext": [],
- "__pEnd": [
- "__pAbstractInterrupt"
- ],
- "__pVisualisation": [],
- "__pVisualisedBy": []
- }
- }
|