C# Class HA4IoT.Conditions.ConditionsValidator

Exibir arquivo Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
ConditionsValidator ( ) : System
ConditionsValidator ( IList conditions ) : System
Validate ( ) : ConditionState
WithCondition ( ConditionRelation relation, ICondition condition ) : ConditionsValidator
WithDefaultState ( ConditionState state ) : ConditionsValidator

Private Methods

Method Description
GetConditionState ( RelatedCondition relatedCondition, ConditionState comparisonState ) : ConditionState

Method Details

ConditionsValidator() public method

public ConditionsValidator ( ) : System
return System

ConditionsValidator() public method

public ConditionsValidator ( IList conditions ) : System
conditions IList
return System

Validate() public method

public Validate ( ) : ConditionState
return ConditionState

WithCondition() public method

public WithCondition ( ConditionRelation relation, ICondition condition ) : ConditionsValidator
relation ConditionRelation
condition ICondition
return ConditionsValidator

WithDefaultState() public method

public WithDefaultState ( ConditionState state ) : ConditionsValidator
state ConditionState
return ConditionsValidator