C# Класс Metrics.QualityCoefficient

This class represent the Quality Coefficient. For more information read the following Wiki page (http://code.google.com/p/p2p-player/wiki/ImplicitQoS#Coefficiente_di_Qualità)
Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CompareTo ( object obj ) : int

Method that compare this object with another. If the other object is a QualityCoefficient too, then the comparison is done by using the Coeffiecient property (which is a double type)

QualityCoefficient ( ) : System

Default Constructor of the Coefficient. This initializes all the components at 0.0 value.

QualityCoefficient ( FileQualityCoefficient fq, double aff = 0.0, double pq = 0.0 ) : System

Main Constructor of the Coefficient. This just initializes all the components with the given values.

ToString ( ) : String

Returns a string representation of the Quality Coefficient and of its components.

operator ( ) : bool

Not-Equals comparison Operator

Описание методов

CompareTo() публичный Метод

Method that compare this object with another. If the other object is a QualityCoefficient too, then the comparison is done by using the Coeffiecient property (which is a double type)
public CompareTo ( object obj ) : int
obj object Object to compare with
Результат int

QualityCoefficient() публичный Метод

Default Constructor of the Coefficient. This initializes all the components at 0.0 value.
public QualityCoefficient ( ) : System
Результат System

QualityCoefficient() публичный Метод

Main Constructor of the Coefficient. This just initializes all the components with the given values.
public QualityCoefficient ( FileQualityCoefficient fq, double aff = 0.0, double pq = 0.0 ) : System
fq FileQualityCoefficient File Quality Component
aff double Search Affinity Component
pq double Peer Quality Component.
Результат System

ToString() публичный Метод

Returns a string representation of the Quality Coefficient and of its components.
public ToString ( ) : String
Результат String

operator() публичный статический Метод

Not-Equals comparison Operator
public static operator ( ) : bool
Результат bool