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
显示文件 Open project: zencoders/sambatyon Class Usage Examples

Public Methods

Method 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 method

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
return int

QualityCoefficient() public method

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

QualityCoefficient() public method

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.
return System

ToString() public method

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

operator() public static method

Not-Equals comparison Operator
public static operator ( ) : bool
return bool