Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
knp::devices::altai::AltAI Class Reference

Base class for AltAI devices. More...

#include <knp/devices/altai.h>

+ Inheritance diagram for knp::devices::altai::AltAI:
+ Collaboration diagram for knp::devices::altai::AltAI:

Public Member Functions

virtual ~AltAI ()=default
 AltAI destructor.
 
knp::core::DeviceType get_type () const override
 Get device type.
 
std::pair< size_t, size_t > get_grid_cols_rows () const
 Get number of columns and rows in device grid.
 
std::vector< Portget_grid_ports () const
 Get port vector of device grid.
 
- Public Member Functions inherited from knp::core::Device
virtual ~Device ()=default
 Device destructor.
 
const UIDget_uid () const
 Get device UID.
 
auto & get_tags ()
 Get tags used by the device.
 
virtual const std::string & get_name () const =0
 Get device name.
 
virtual float get_power () const =0
 Get power consumption details for the device.
 

Protected Attributes

size_t columns_
 Number of columns in core grid of AltAI device.
 
size_t rows_
 Number of rows in core grid of AltAI device.
 
std::vector< Portports_
 Ports in core grid of AltAI device.
 
- Protected Attributes inherited from knp::core::Device
BaseData base_
 Device base data.
 

Detailed Description

Base class for AltAI devices.

Definition at line 104 of file altai.h.

Member Function Documentation

◆ get_grid_cols_rows()

std::pair< size_t, size_t > knp::devices::altai::AltAI::get_grid_cols_rows ( ) const
nodiscard

Get number of columns and rows in device grid.

Returns
pair of AltAI grid columns and rows.

◆ get_grid_ports()

std::vector< Port > knp::devices::altai::AltAI::get_grid_ports ( ) const
nodiscard

Get port vector of device grid.

Returns
Port vector of a given AltAI device.

◆ get_type()

knp::core::DeviceType knp::devices::altai::AltAI::get_type ( ) const
nodiscardoverridevirtual

Get device type.

Returns
device type.

Implements knp::core::Device.

Member Data Documentation

◆ columns_

size_t knp::devices::altai::AltAI::columns_
protected

Number of columns in core grid of AltAI device.

Definition at line 135 of file altai.h.

◆ ports_

std::vector<Port> knp::devices::altai::AltAI::ports_
protected

Ports in core grid of AltAI device.

Definition at line 145 of file altai.h.

◆ rows_

size_t knp::devices::altai::AltAI::rows_
protected

Number of rows in core grid of AltAI device.

Definition at line 140 of file altai.h.


The documentation for this class was generated from the following file: