C# Class Nexus.Client.ModManagement.Scripting.XmlScript.CompositeCondition

A condition that requires a combination of sub-conditions to be fulfilled.
The combination of sub-conditions that must be fulfilled is determined by an operator (e.g., and, or).
Inheritance: ObservableObject, ICondition
Show file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
CompositeCondition ( ConditionOperator p_dopOperator ) : System

A simple constructor that initializes the object with the given values.

GetIsFulfilled ( ConditionStateManager p_csmStateManager ) : bool

Determines if the given composite condition if fulfilled.

A composite condition is fulfilled if and only if its contained conditions are fulfilled in the combination specified by the Operator.

GetMessage ( ConditionStateManager p_csmStateManager ) : string

Gets a message describing whether or not the condition is fulfilled.

If the condition is fulfilled the message is "Passed." If the condition is not fulfilled the message is a list of the sub-dependecies' messages.

Private Methods

Method Description
m_lstConditions_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

CompositeCondition() public method

A simple constructor that initializes the object with the given values.
public CompositeCondition ( ConditionOperator p_dopOperator ) : System
p_dopOperator ConditionOperator The operator that specifies what combination of sub-conditions /// must be fulfilled in order for this dependancy to be fulfilled.
return System

GetIsFulfilled() public method

Determines if the given composite condition if fulfilled.
A composite condition is fulfilled if and only if its contained conditions are fulfilled in the combination specified by the Operator.
public GetIsFulfilled ( ConditionStateManager p_csmStateManager ) : bool
p_csmStateManager ConditionStateManager The manager that tracks the currect install state.
return bool

GetMessage() public method

Gets a message describing whether or not the condition is fulfilled.
If the condition is fulfilled the message is "Passed." If the condition is not fulfilled the message is a list of the sub-dependecies' messages.
public GetMessage ( ConditionStateManager p_csmStateManager ) : string
p_csmStateManager ConditionStateManager The manager that tracks the currect install state.
return string