C# Class 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à)
Inheritance: IComparable
Afficher le fichier Open project: zencoders/sambatyon Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CompareTo() public méthode

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
Résultat int

QualityCoefficient() public méthode

Default Constructor of the Coefficient. This initializes all the components at 0.0 value.
public QualityCoefficient ( ) : System
Résultat System

QualityCoefficient() public méthode

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.
Résultat System

ToString() public méthode

Returns a string representation of the Quality Coefficient and of its components.
public ToString ( ) : String
Résultat String

operator() public static méthode

Not-Equals comparison Operator
public static operator ( ) : bool
Résultat bool