Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Public Member Functions | |
int | getModuleNumber () |
Returns the number of the module. More... | |
string | getModuleNameAsString () |
Returns the number of the module. More... | |
string | getSlotPath () |
Returns slot path. More... | |
ModuleType | getModuleType () |
Returns the module type. More... | |
int | getPortCount () |
Returns the port count. More... | |
Port | getPortAt (int) |
Returns the port at the given index. More... | |
void | addSlot (ModuleType) |
Adds a slot of the given type. More... | |
int | getSlotCount () |
Returns the total slot count. More... | |
ModuleType | getSlotTypeAt (int) |
Returns the type of the module at the given index. More... | |
void | removeModuleAt (int) |
Removes the module at the given index. More... | |
int | getModuleCount () |
Returns the number modules. More... | |
Module | getModuleAt (int) |
Returns the module at the given index. More... | |
Device | getOwnerDevice () |
Returns owner device of the module. More... | |
ModuleDescriptor | getDescriptor () const |
Returns the descriptor of the module. Descriptor contains device model, position, etc. More... | |
bool | addModuleAt (string, int) |
Adds a module at the specified location. More... | |
bool Module::addModuleAt | ( | string | , |
int | |||
) |
Adds a module at the specified location.
moduleId,module | type to add. Something like "NM-2W". |
index,index | to add at. |
void Module::addSlot | ( | ModuleType | ) |
Adds a slot of the given type.
type,Slot | type to add. 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 |
ModuleDescriptor Module::getDescriptor | ( | ) | const |
Returns the descriptor of the module. Descriptor contains device model, position, etc.
Module Module::getModuleAt | ( | int | ) |
Returns the module at the given index.
index,index | of the module to get. Range (0, getModuleCount - 1). |
int Module::getModuleCount | ( | ) |
Returns the number modules.
string Module::getModuleNameAsString | ( | ) |
Returns the number of the module.
int Module::getModuleNumber | ( | ) |
Returns the number of the module.
ModuleType Module::getModuleType | ( | ) |
Returns the module type.
Device Module::getOwnerDevice | ( | ) |
Returns owner device of the module.
Port Module::getPortAt | ( | int | ) |
Returns the port at the given index.
index,index | of the port to retrive. |
int Module::getPortCount | ( | ) |
Returns the port count.
int Module::getSlotCount | ( | ) |
Returns the total slot count.
string Module::getSlotPath | ( | ) |
Returns slot path.
ModuleType Module::getSlotTypeAt | ( | int | ) |
Returns the type of the module at the given index.
index,index | of the module to find the type for. |
void Module::removeModuleAt | ( | int | ) |
Removes the module at the given index.
index,index | of the module to remove. Range (0, getModuleCount - 1). |