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
파일 보기 프로젝트 열기: zencoders/sambatyon 1 사용 예제들

공개 메소드들

메소드 설명
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