C# Class Adf.Data.InternalState.InternalStatusEngine

Represents System.Collections.Hashtable containg all the rules regarding InternalStatus. Provides methods to add rule, change internal status etc.
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
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.

Private Methods

Method Description
ParseKey ( InternalStatus current, InternalStatus desired ) : string

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

Method Details

AddRule() public method

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

AddRule() public method

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

BuildUp() public method

Adds all the rules regarding InternalStatus to the InternalStatusEngine.
public BuildUp ( ) : void
return void

ChangeStatus() public method

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

InternalStatusEngine() public method

Initilizes a new instance of InternalStatusEngine class.
public InternalStatusEngine ( ) : System.Collections
return System.Collections