CompositeConditionModel Class |
Namespace: Livit.Learn.Model.Conditions
[SerializableAttribute] public class CompositeConditionModel : ConditionModel
The CompositeConditionModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | CompositeConditionModel | Initializes a new instance of the CompositeConditionModel class |
Name | Description | |
---|---|---|
![]() | Attached |
Defines an attached property.
(Inherited from BaseModel.) |
![]() | Comments |
(Development) Includes comments in the XML code.
(Inherited from BaseModel.) |
![]() | Conditions | |
![]() | ConditionsSerialized |
Lists the child Conditions of this CompositeCondition.
|
![]() ![]() | DataContext |
Contains a source of all bindings defined for element.
(Inherited from BaseModel.) |
![]() | ExternalXmlPath | (Inherited from BaseModel.) |
![]() | Id |
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.) |
![]() | IsIdAutogenerated | (Inherited from BaseModel.) |
![]() | Match |
Defines if any or all of the child Conditions need to be true for the CompositeCondition to return true.
|
![]() | TemplateVersionId |
Contains a id of source template.
(Inherited from BaseModel.) |
![]() | XmlComments |
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.) |
Name | Description | |
---|---|---|
![]() | DeepCopy |
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.) |
![]() | ShallowCopy | (Inherited from BaseModel.) |
![]() | ToString |
Returns a string that represents the current object.
(Inherited from BaseModel.) |
![]() | UpdateModels |
This method will update this model and all its child models.
(Inherited from BaseModel.) |
A CompositeCondition can be nested inside another CompositeCondition as needed.
This example contains a nested CompositeCondition. The child CompositeCondition returns true if both its child DataConditions are true.
The parent CompositeCondition will return true if either the child DataCondition or CompositeCondition are true:
<CompletedWhen> <CompositeCondition Match="Any"> <DataCondition Target="LeftHand" Property="ActiveStates" Comparison="Contains" Value="Glove" /> <CompositeCondition Match="All"> <DataCondition Target="LabRoom" Property="IsFocused" Value="true" /> <DataCondition Target="RightHand" Property="ActiveStates" Comparison="Contains" Value="Glove" /> </CompositeCondition> </CompositeCondition> </CompletedWhen>