|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Factory for modules. More...
Public Member Functions | |
| ModuleDescriptor | getDescriptor (ModuleType, string) |
| Gets the module descriptor that matches the given types. More... | |
| int | getAvailableModuleCount () |
| Gets the number of module descriptors stored in the factory. More... | |
| ModuleDescriptor | getAvailableModuleAt (int) |
| Gets the module descriptor at the given index. More... | |
| int | getAvailableModuleForTypeCount (ModuleType) |
| Gets the number of module descriptors stored in the factory of the given type. More... | |
| ModuleDescriptor | getAvailableModuleForTypeAt (ModuleType, int) |
| Gets the module descriptor stored for the given type and index. More... | |
| ModuleDescriptor | addModuleModel (ModuleType, string) |
| Adds a module descriptor of the given types. More... | |
Factory for modules.
| ModuleDescriptor ModuleFactory::addModuleModel | ( | ModuleType | , |
| string | |||
| ) |
Adds a module descriptor of the given types.
| type,module | type to add. |
| model,the | string type of for the module. Something like "PT-ROUTER-NM-1CFE". |
| ModuleDescriptor ModuleFactory::getAvailableModuleAt | ( | int | ) |
Gets the module descriptor at the given index.
| int,index | to get the descriptor from. Range (0, getAvailableModuleCount()-1) |
| int ModuleFactory::getAvailableModuleCount | ( | ) |
Gets the number of module descriptors stored in the factory.
| ModuleDescriptor ModuleFactory::getAvailableModuleForTypeAt | ( | ModuleType | , |
| int | |||
| ) |
Gets the module descriptor stored for the given type and index.
| type,module | type to check for. |
| index,index | in they type to get the descriptor for. |
| int ModuleFactory::getAvailableModuleForTypeCount | ( | ModuleType | ) |
Gets the number of module descriptors stored in the factory of the given type.
| type,module | type to check for. |
| ModuleDescriptor ModuleFactory::getDescriptor | ( | ModuleType | , |
| string | |||
| ) |
Gets the module descriptor that matches the given types.
| moduleType | enum<ModuleType>, the number of the module. Types: eLineCard = 0, eNetworkModule = 1, eInterfaceCard = 2, ePtRouterModule = 3, ePtSwitchModule = 4, ePtCloudModule = 5, ePtRepeaterModule = 6, ePtHostModule = 7, ePtModemModule = 8, ePtLaptopModule = 9, ePtTVModule = 10, eIpPhonePowerAdapter = 11, ePtTabletPCModule = 12, ePtPdaModule = 13, ePtWirelessEndDeviceModule = 14, ePtWiredEndDeviceModule = 15, eTrs35 = 16, eUsb = 17, eNonRemovableModule = 18, eASAModule = 19, eASAPowerAdapter = 20, ePtCellTowerModule = 21, ePtIoeModule = 22, ePtIoeNetworkModule = 23, ePtIoeAnalogModule = 24, ePtIoeDigitalModule = 25, ePtIoeCustomIOModule = 26, ePtIoePowerAdapter = 27, ePtIoeMcuComponentPowerAdapter = 28, ePtRouterPowerAdapter = 29, eSfpModule = 30, eAccessPointPowerAdaptor = 31, eNonRemovableInterfaceCard = 32, eCustomModuleType = 2000 |
| model,model | name. Something like "PT-ROUTER-NM-1CFE". |