123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- {
- "types": {
- "__pAConfiguration": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "enabled",
- "type": "code",
- "default": "getAttr()"
- }
- ],
- "__pHTTPDebugger": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "serverAddr",
- "type": "code",
- "default": "getAttr()"
- },
- {
- "name": "enabled",
- "type": "code",
- "default": "getAttr()"
- }
- ],
- "__pCustom": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "options",
- "type": "code",
- "default": "getAttr()"
- },
- {
- "name": "enabled",
- "type": "code",
- "default": "getAttr()"
- }
- ],
- "__pHTTPPerfMonitor": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "serverAddr",
- "type": "code",
- "default": "getAttr()"
- },
- {
- "name": "enabled",
- "type": "code",
- "default": "getAttr()"
- }
- ]
- },
- "constraints": [
- {
- "name": "noAbstractInstances",
- "event": "pre-create",
- "code": "/* comment next line to enable this constraint */\nthrow \"IgnoredConstraint\"\nfalse",
- "targetType": "AConfiguration"
- }
- ],
- "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": {
- "__pAConfiguration": [],
- "__pHTTPDebugger": [],
- "__pCustom": [],
- "__pHTTPPerfMonitor": []
- },
- "legalConnections": {},
- "connectorTypes": {},
- "types2parentTypes": {
- "__pAConfiguration": [],
- "__pHTTPDebugger": [
- "__pAConfiguration"
- ],
- "__pCustom": [
- "__pAConfiguration"
- ],
- "__pHTTPPerfMonitor": [
- "__pAConfiguration"
- ]
- }
- }
|