#include <SumAttribute.h>
Inheritance diagram for SumAttribute< T >:
Public Member Functions | |
SumAttribute (const PacketAttribute &attrib) throw ( InvalidDatatypeException ) | |
SumAttribute (const PacketAttribute &attrib, const PacketFilter &filter) throw ( InvalidDatatypeException ) | |
SumAttribute (const SumAttribute &toCopy) | |
virtual SumAttribute * | clone (void) const |
virtual SumAttribute & | operator= (const SumAttribute &rhs) |
virtual void | linkToAggregate (Aggregate &parent) |
Notify the Attribute that it is being linked to a particular aggregate. | |
virtual void | handlePassedPacket (TraceIterator &packet) throw ( ArithmeticOverflowException ) |
Notify the attribute of a new packet to be included in the computation. | |
virtual void | compute (void) throw ( ArithmeticOverflowException ) |
Compute the value of the attribute. | |
virtual void | reset (void) |
Reset the value of the attribute. | |
virtual T | getValue (void) const throw ( ArithmeticOverflowException ) |
virtual std::string | toString (void) const |
get a string representation of the Attribute | |
int | getType (void) |
virtual const Attribute & | getAttrib (const std::string &ident) const throw ( UnknownAttributeException ) |
Get a subattribute of this attribute. | |
virtual void | handlePacket (TraceIterator &newPkt) |
Static Public Attributes | |
static const int | TYPE_UNKNOWN = 0 |
static const int | TYPE_SCALAR = 1 |
static const int | TYPE_DISTRIB = 17 |
static const int | TYPE_HISTOGRAM = 25 |
static const int | TYPE_ARRAY = 33 |
static const int | TYPE_SET = 34 |
Protected Attributes | |
Aggregate * | aggr |
int | attribType |
bool | dirty |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Attribute &attrib) |
|
Create a new SumAttribute
|
|
Compute the value of the attribute. Used to update an offline attribute. Reimplemented from Attribute. |
|
get the value of the attribute
Reimplemented from ScalarAttribute< T >. |
|
checks the packet against the filter and calls handlePassedPacket if it passes or if the filter is NULL Implements PacketListener. |
|
Notify the attribute of a new packet to be included in the computation. For an online attribute, update the attribute. For an offline attribute, set the dirty bit. (default) Reimplemented from Attribute. |
|
Notify the Attribute that it is being linked to a particular aggregate.
Reimplemented from Attribute. |
|
Reset the value of the attribute.
Reimplemented from Attribute. |
|
array |
|
statistical distribution |
|
histogram |
|
single-valued type |
|
set |
|
unknown type |