ArtsPortMatrix


[ libArts | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class ArtsPortMatrix : public Arts

{

public:
ArtsPortMatrix();
~ArtsPortMatrix();
uint16_t SampleInterval() const ;
uint16_t SampleInterval(uint16_t sampleInterval) ;
uint32_t Count() const ;
uint32_t Count(uint32_t count) ;
uint64_t TotalPkts() const ;
uint64_t TotalPkts(uint64_t totalPkts) ;
uint64_t TotalBytes() const ;
uint64_t TotalBytes(uint64_t totalBytes) ;
vector<ArtsPortMatrixEntry> & PortEntries() const ;
protected:
}; // ArtsPortMatrix

Back to the top of ArtsPortMatrix


DESCRIPTION


---------------------------------------------------------------------------
class ArtsPortMatrix : public Arts
---------------------------------------------------------------------------
This class abstracts a port matrix. A port matrix contains packet and byte counters for traffic sent from source transport port numbers to destination transport port numbers. Note we just inherit from the Arts class and add some convenience functions for accessing the contained ArtsPortMatrixData object.
---------------------------------------------------------------------------

Back to the top of ArtsPortMatrix


ArtsPortMatrix();


-------------------------------------------------------------------------
ArtsPortMatrix()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsPortMatrix();

Back to the top of ArtsPortMatrix


~ArtsPortMatrix();


-------------------------------------------------------------------------
~ArtsPortMatrix()
.........................................................................
destructor
-------------------------------------------------------------------------

  ~ArtsPortMatrix();

Back to the top of ArtsPortMatrix


uint16_t SampleInterval() const ;


-------------------------------------------------------------------------
inline uint16_t SampleInterval() const
.........................................................................
Returns the sampling ratio if the port matrix was built using packet sampling techniques. Normally this value is 1, meaning we're working with complete data sets (for example, from Cisco flow-export).
-------------------------------------------------------------------------

  inline uint16_t SampleInterval() const
                                                             
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint16_t SampleInterval(uint16_t sampleInterval) ;


-------------------------------------------------------------------------
inline uint16_t SampleInterval(uint16_t sampleInterval)
.........................................................................
Sets and returns the sampling ratio if the port matrix was built using packet sampling techniques. Normally this value is 1, meaning we're working with complete data sets (for example, from Cisco flow-export).
-------------------------------------------------------------------------

  inline uint16_t SampleInterval(uint16_t sampleInterval)
                                                                           
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint32_t Count() const ;


-------------------------------------------------------------------------
inline uint32_t Count() const
.........................................................................
Returns the number of port matrix entries (cells) in an ArtsPortMatrix object.
-------------------------------------------------------------------------

  inline uint32_t Count() const
                                                    
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint32_t Count(uint32_t count) ;


-------------------------------------------------------------------------
inline uint32_t Count(uint32_t count)
.........................................................................
Sets and Returns the number of port matrix entries (cells) in an ArtsPortMatrix object.
-------------------------------------------------------------------------

  inline uint32_t Count(uint32_t count)
                                                         
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint64_t TotalPkts() const ;


-------------------------------------------------------------------------
inline uint64_t TotalPkts() const
.........................................................................
Returns the total packets of traffic in the ArtsPortMatrix object. The total is the sum of all traffic from each source to each destination.
-------------------------------------------------------------------------

  inline uint64_t TotalPkts() const
                                                        
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint64_t TotalPkts(uint64_t totalPkts) ;


-------------------------------------------------------------------------
inline uint64_t TotalPkts(uint64_t totalPkts)
.........................................................................
Sets and returns the total packets of traffic in the ArtsPortMatrixData object. The total is the sum of all traffic from each source to each destination.
-------------------------------------------------------------------------

  inline uint64_t TotalPkts(uint64_t totalPkts)
                                                                 
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint64_t TotalBytes() const ;


-------------------------------------------------------------------------
inline uint64_t TotalBytes() const
.........................................................................
Returns the total bytes of traffic in the ArtsPortMatrix object. The total is the sum of all traffic from each source to each destination.
-------------------------------------------------------------------------

  inline uint64_t TotalBytes() const
                                                         
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


uint64_t TotalBytes(uint64_t totalBytes) ;


-------------------------------------------------------------------------
inline uint64_t TotalBytes(uint64_t totalBytes)
.........................................................................
Sets and returns the total bytes of traffic in the ArtsPortMatrix object. The total is the sum of all traffic from each source to each destination.
-------------------------------------------------------------------------

  inline uint64_t TotalBytes(uint64_t totalBytes)
                                                                   
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


vector<ArtsPortMatrixEntry> & PortEntries() const ;


-------------------------------------------------------------------------
inline vector<ArtsPortMatrixEntry> & PortEntries() const
.........................................................................
Return a reference to the vector of ArtsPortMatrixEntry objects. Note that even though this member may be called from a const object, the returned reference is not const; the vector is mutable.
-------------------------------------------------------------------------

  inline vector<ArtsPortMatrixEntry> & PortEntries() const
                                                          
;

Function is currently defined inline.


Back to the top of ArtsPortMatrix


All Members

public:
void AddHostAttribute(ipv4addr_t hostAddr);
void AddCreationAttribute(uint32_t creationTime);
void AddPeriodAttribute(uint32_t startTime, uint32_t endTime);
void AddIfIndexAttribute(uint16_t ifIndex);
ArtsHeader & Header() const ;
vector<ArtsAttribute> & Attributes() const ;
ArtsIpPathData* IpPathData() const ;
ArtsAsMatrixData* AsMatrixData() const ;
ArtsNetMatrixData* NetMatrixData() const ;
ArtsPortTableData* PortTableData() const ;
ArtsSelectedPortTableData* SelectedPortTableData() const ;
ArtsPortMatrixData* PortMatrixData() const ;
ArtsProtocolTableData* ProtocolTableData() const ;
istream & read(istream & is);
int read(int fd);
ostream& write(ostream& os);
int write(int fd);
Arts & operator = (const Arts & arts);
friend ostream& operator << (ostream& os, const Arts & arts);
uint16_t SampleInterval() const ;
uint16_t SampleInterval(uint16_t sampleInterval) ;
uint32_t Count() const ;
uint32_t Count(uint32_t count) ;
uint64_t TotalPkts() const ;
uint64_t TotalPkts(uint64_t totalPkts) ;
uint64_t TotalBytes() const ;
uint64_t TotalBytes(uint64_t totalBytes) ;
vector<ArtsPortMatrixEntry> & PortEntries() const ;
protected:
struct _data;
mutable ArtsHeader _header;
mutable vector<ArtsAttribute> _attributes;

Back to the top of ArtsPortMatrix


Ancestors

Inheritance chain for ArtsPortMatrix:

Back to the top of ArtsPortMatrix


Descendants

Class is not inherited by any others.

Back to the top of ArtsPortMatrix


Generated from source by the Cocoon utilities on Sat Oct 17 14:40:00 1998 .

Report problems to jkotula@unimax.com