C# 클래스 ScrewTurn.Wiki.SearchEngine.Relevance

Represents the relevance of a search result with two states: non-finalized and finalized. When the state is non-finalized, the value of the relevance has an unknown meaning. When the state is finalized, the value of the relevance is a percentage value representing the relevance of a search result.
All members are not thread-safe.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
isFinalized bool
value float

공개 메소드들

메소드 설명
Finalize ( float total ) : void

Finalizes the value of the relevance.

The method sets the finalized value of the relevance to value / total * 100.

NormalizeAfterFinalization ( float factor ) : void

Normalizes the relevance after finalization.

Relevance ( ) : System

Initializes a new instance of the Relevance class.

Relevance ( float value ) : System

Initializes a new instance of the Relevance class.

SetValue ( float value ) : void

Sets the non-finalized value of the relevance.

메소드 상세

Finalize() 공개 메소드

Finalizes the value of the relevance.
The method sets the finalized value of the relevance to value / total * 100.
If is less than zero. If is true ( was called).
public Finalize ( float total ) : void
total float The global relevance value.
리턴 void

NormalizeAfterFinalization() 공개 메소드

Normalizes the relevance after finalization.
If is false ( was not called).
public NormalizeAfterFinalization ( float factor ) : void
factor float The normalization factor.
리턴 void

Relevance() 공개 메소드

Initializes a new instance of the Relevance class.
public Relevance ( ) : System
리턴 System

Relevance() 공개 메소드

Initializes a new instance of the Relevance class.
If is less than zero.
public Relevance ( float value ) : System
value float The initial relevance value, non-finalized.
리턴 System

SetValue() 공개 메소드

Sets the non-finalized value of the relevance.
If is less than zero. If is true ( was called).
public SetValue ( float value ) : void
value float The value.
리턴 void

프로퍼티 상세

isFinalized 보호되어 있는 프로퍼티

A value indicating whether the relevance value is finalized.
protected bool isFinalized
리턴 bool

value 보호되어 있는 프로퍼티

The value of the relevance.
protected float value
리턴 float