|
1197 | 1197 | "staticMethods": [] |
1198 | 1198 | }, |
1199 | 1199 | { |
1200 | | - "className": "port.Port", |
| 1200 | + "className": "port.CompoundPort", |
1201 | 1201 | "classVariables": [], |
1202 | 1202 | "constructors": [ |
1203 | 1203 | { |
|
1207 | 1207 | "name": "port_type", |
1208 | 1208 | "type": "port.PortType" |
1209 | 1209 | }, |
1210 | | - { |
1211 | | - "defaultValue": "", |
1212 | | - "name": "location", |
1213 | | - "type": "int" |
1214 | | - }, |
1215 | 1210 | { |
1216 | 1211 | "defaultValue": "", |
1217 | 1212 | "name": "port1", |
1218 | | - "type": "type[typing.Self]" |
| 1213 | + "type": "port.Port" |
1219 | 1214 | }, |
1220 | 1215 | { |
1221 | 1216 | "defaultValue": "", |
1222 | 1217 | "name": "port2", |
1223 | | - "type": "type[typing.Self]" |
| 1218 | + "type": "port.Port" |
| 1219 | + } |
| 1220 | + ], |
| 1221 | + "declaringClassName": "port.CompoundPort", |
| 1222 | + "functionName": "__init__", |
| 1223 | + "returnType": "port.CompoundPort", |
| 1224 | + "tooltip": "\n Create a compound port from two other ports.\n\n Args:\n port_type: PortType for this port (must be a compound type)\n port1: First Port for compound ports\n port2: Second Port for compound ports\n " |
| 1225 | + } |
| 1226 | + ], |
| 1227 | + "enums": [], |
| 1228 | + "instanceMethods": [ |
| 1229 | + { |
| 1230 | + "args": [ |
| 1231 | + { |
| 1232 | + "defaultValue": "", |
| 1233 | + "name": "self", |
| 1234 | + "type": "port.CompoundPort" |
| 1235 | + } |
| 1236 | + ], |
| 1237 | + "declaringClassName": "port.CompoundPort", |
| 1238 | + "functionName": "get_all_ports", |
| 1239 | + "returnType": "list[tuple[port.PortType, int]]", |
| 1240 | + "tooltip": "Return a list of all simple ports contained in this compound port." |
| 1241 | + }, |
| 1242 | + { |
| 1243 | + "args": [ |
| 1244 | + { |
| 1245 | + "defaultValue": "", |
| 1246 | + "name": "self", |
| 1247 | + "type": "port.CompoundPort" |
| 1248 | + } |
| 1249 | + ], |
| 1250 | + "declaringClassName": "port.CompoundPort", |
| 1251 | + "functionName": "get_type", |
| 1252 | + "returnType": "port.PortType", |
| 1253 | + "tooltip": "Returns the port type" |
| 1254 | + } |
| 1255 | + ], |
| 1256 | + "instanceVariables": [], |
| 1257 | + "moduleName": "port", |
| 1258 | + "staticMethods": [] |
| 1259 | + }, |
| 1260 | + { |
| 1261 | + "className": "port.Port", |
| 1262 | + "classVariables": [], |
| 1263 | + "constructors": [ |
| 1264 | + { |
| 1265 | + "args": [ |
| 1266 | + { |
| 1267 | + "defaultValue": "", |
| 1268 | + "name": "port_type", |
| 1269 | + "type": "port.PortType" |
1224 | 1270 | } |
1225 | 1271 | ], |
1226 | 1272 | "declaringClassName": "port.Port", |
1227 | 1273 | "functionName": "__init__", |
1228 | 1274 | "returnType": "port.Port", |
1229 | | - "tooltip": "\n Create a port that can be either simple (type + location) or compound (two other ports).\n\n Args:\n port_type: PortType or CompoundPortType for this port\n location: int location for simple ports\n port1: First Port for compound ports\n port2: Second Port for compound ports\n " |
| 1275 | + "tooltip": "" |
1230 | 1276 | } |
1231 | 1277 | ], |
1232 | 1278 | "enums": [], |
|
1262 | 1308 | "moduleName": "port", |
1263 | 1309 | "staticMethods": [] |
1264 | 1310 | }, |
| 1311 | + { |
| 1312 | + "className": "port.SimplePort", |
| 1313 | + "classVariables": [], |
| 1314 | + "constructors": [ |
| 1315 | + { |
| 1316 | + "args": [ |
| 1317 | + { |
| 1318 | + "defaultValue": "", |
| 1319 | + "name": "port_type", |
| 1320 | + "type": "port.PortType" |
| 1321 | + }, |
| 1322 | + { |
| 1323 | + "defaultValue": "", |
| 1324 | + "name": "location", |
| 1325 | + "type": "int" |
| 1326 | + } |
| 1327 | + ], |
| 1328 | + "declaringClassName": "port.SimplePort", |
| 1329 | + "functionName": "__init__", |
| 1330 | + "returnType": "port.SimplePort", |
| 1331 | + "tooltip": "\n Create a simple port with a type and location.\n\n Args:\n port_type: PortType for this port (must be a simple type)\n location: int location for this port\n " |
| 1332 | + } |
| 1333 | + ], |
| 1334 | + "enums": [], |
| 1335 | + "instanceMethods": [ |
| 1336 | + { |
| 1337 | + "args": [ |
| 1338 | + { |
| 1339 | + "defaultValue": "", |
| 1340 | + "name": "self", |
| 1341 | + "type": "port.SimplePort" |
| 1342 | + } |
| 1343 | + ], |
| 1344 | + "declaringClassName": "port.SimplePort", |
| 1345 | + "functionName": "get_all_ports", |
| 1346 | + "returnType": "list[tuple[port.PortType, int]]", |
| 1347 | + "tooltip": "Return a list containing this simple port." |
| 1348 | + }, |
| 1349 | + { |
| 1350 | + "args": [ |
| 1351 | + { |
| 1352 | + "defaultValue": "", |
| 1353 | + "name": "self", |
| 1354 | + "type": "port.SimplePort" |
| 1355 | + } |
| 1356 | + ], |
| 1357 | + "declaringClassName": "port.SimplePort", |
| 1358 | + "functionName": "get_type", |
| 1359 | + "returnType": "port.PortType", |
| 1360 | + "tooltip": "Returns the port type" |
| 1361 | + } |
| 1362 | + ], |
| 1363 | + "instanceVariables": [], |
| 1364 | + "moduleName": "port", |
| 1365 | + "staticMethods": [] |
| 1366 | + }, |
1265 | 1367 | { |
1266 | 1368 | "className": "rev_touch_sensor.RevTouchSensor", |
1267 | 1369 | "classVariables": [], |
|
2668 | 2770 | "moduleName": "expansion_hub_servo", |
2669 | 2771 | "moduleVariables": [] |
2670 | 2772 | }, |
| 2773 | + { |
| 2774 | + "enums": [ |
| 2775 | + { |
| 2776 | + "enumClassName": "port.PortType", |
| 2777 | + "enumValues": [ |
| 2778 | + "BASE_COMPOUND", |
| 2779 | + "CAN_PORT", |
| 2780 | + "EXPANSION_HUB_MOTOR", |
| 2781 | + "EXPANSION_HUB_MOTOR_PORT", |
| 2782 | + "EXPANSION_HUB_SERVO", |
| 2783 | + "EXPANSION_HUB_SERVO_PORT", |
| 2784 | + "I2C_PORT", |
| 2785 | + "SERVO_PORT", |
| 2786 | + "SMART_IO_PORT", |
| 2787 | + "SMART_MOTOR_PORT", |
| 2788 | + "USB_HUB", |
| 2789 | + "USB_PORT" |
| 2790 | + ], |
| 2791 | + "moduleName": "port", |
| 2792 | + "tooltip": "" |
| 2793 | + } |
| 2794 | + ], |
| 2795 | + "functions": [], |
| 2796 | + "moduleName": "port", |
| 2797 | + "moduleVariables": [] |
| 2798 | + }, |
2671 | 2799 | { |
2672 | 2800 | "enums": [], |
2673 | 2801 | "functions": [], |
|
2709 | 2837 | "smart_motor.SmartMotor", |
2710 | 2838 | "spark_mini.SparkMini", |
2711 | 2839 | "sparkfun_led_stick.SparkFunLEDStick" |
| 2840 | + ], |
| 2841 | + "port.Port": [ |
| 2842 | + "port.CompoundPort", |
| 2843 | + "port.SimplePort" |
2712 | 2844 | ] |
2713 | 2845 | } |
2714 | 2846 | } |
0 commit comments