C# Класс Adf.Data.InternalState.InternalStatusEngine

Represents System.Collections.Hashtable containg all the rules regarding InternalStatus. Provides methods to add rule, change internal status etc.
Показать файл Открыть проект

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

Метод Описание
AddRule ( InternalStatus current, InternalStatus desired ) : void

Adds a rule regarding the specified current and desired InternalStatuses to the InternalStatusEngine.

AddRule ( InternalStatus current, InternalStatus desired, InternalStatus outcome ) : void

Adds a rule regarding the specified current, desired and outcome InternalStatuses to the InternalStatusEngine.

BuildUp ( ) : void

Adds all the rules regarding InternalStatus to the InternalStatusEngine.

ChangeStatus ( InternalStatus current, InternalStatus desired ) : InternalStatus

Changes the InternalStatus using the specified current and desired InternalStatuses and returns the resultant InternalStatus.

InternalStatusEngine ( ) : System.Collections

Initilizes a new instance of InternalStatusEngine class.

Приватные методы

Метод Описание
ParseKey ( InternalStatus current, InternalStatus desired ) : string

Returns a string comprising the specified current InternalStatus and desired InternalStatus.

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

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

Adds a rule regarding the specified current and desired InternalStatuses to the InternalStatusEngine.
public AddRule ( InternalStatus current, InternalStatus desired ) : void
current InternalStatus The current .
desired InternalStatus The desired .
Результат void

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

Adds a rule regarding the specified current, desired and outcome InternalStatuses to the InternalStatusEngine.
public AddRule ( InternalStatus current, InternalStatus desired, InternalStatus outcome ) : void
current InternalStatus The current .
desired InternalStatus The desired .
outcome InternalStatus The outcome .
Результат void

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

Adds all the rules regarding InternalStatus to the InternalStatusEngine.
public BuildUp ( ) : void
Результат void

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

Changes the InternalStatus using the specified current and desired InternalStatuses and returns the resultant InternalStatus.
public ChangeStatus ( InternalStatus current, InternalStatus desired ) : InternalStatus
current InternalStatus The current .
desired InternalStatus The desired .
Результат InternalStatus

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

Initilizes a new instance of InternalStatusEngine class.
public InternalStatusEngine ( ) : System.Collections
Результат System.Collections