[This is preliminary documentation and is subject to change.]
This class serves as the base template class for all rule types (e.g., action rules, associative rules, etc.)
in the CLARION Library
The Rule..::..Condition type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Rule..::..Condition |
Initializes a new instance of the Rule..::..Condition class
|
Methods
Name | Description | |
---|---|---|
![]() |
Add(Rule..::..Condition..::..ConditionTuple) |
Adds a world object and its ON/OFF specification (in the form of a Rule..::..Condition..::..ConditionTuple) to the condition
|
![]() |
Add(Guid, Boolean) |
Adds a world object (based on the world ID of the object) and its ON/OFF specification to the condition
|
![]() |
Add(IWorldObject, Boolean) |
Adds a world object and its ON/OFF specification to the condition
|
![]() |
Clear |
Clears the condition
|
![]() |
Contains(Guid) |
Determines whether the world object with the specified world ID is contained within the condition
(regardless of its ON/OFF specification)
|
![]() |
Contains(IWorldObject) |
Determines whether the world object is contained within the condition (regardless of its ON/OFF specification)
|
![]() |
Contains(Rule..::..Condition..::..ConditionTuple) |
Determines whether the world object and ON/OFF specification (in the form of a Rule..::..Condition..::..ConditionTuple) are contained within the condition
|
![]() |
Contains(Guid, Boolean) |
Determines whether the world object with the specified world ID is contained within the condition
and has the specified ON/OFF setting
|
![]() |
Contains(IWorldObject, Boolean) |
Determines whether the world object is contained within the condition and has the specified ON/OFF setting
|
![]() |
CopyTo |
Copies the condition to the specified array starting at the specified index
|
![]() |
Equals(Object) |
Determines whether the specified object is a Condition and whether it is equal to this condition
(Overrides Object..::..Equals(Object).) |
![]() |
Equals(Rule..::..Condition) |
Determines whether the specified condition is equal to this condition
|
![]() |
GetEnumerator |
Gets an enumerator for the condition
|
![]() |
GetHashCode |
Gets the hash code for this condition
(Overrides Object..::..GetHashCode()()()().) |
![]() |
Remove(Guid) |
Removes the world object with the specified world ID from the condition
|
![]() |
Remove(IWorldObject) |
Removes the specified world object from the condition
|
![]() |
Remove(Rule..::..Condition..::..ConditionTuple) |
Removes a world object and its ON/OFF specification (in the form of a Rule..::..Condition..::..ConditionTuple) from the condition
|
![]() |
ToString()()()() |
Returns a string representation of the condition
(Overrides Object..::..ToString()()()().) |
![]() |
ToString(String) |
Returns a string representation of the condition indented using the specified indent string
|
Operators
Name | Description | |
---|---|---|
![]() ![]() |
Addition(Rule..::..Condition, Agent) |
Allows an agent to be added to the condition (with the ON setting) using the + operator
|
![]() ![]() |
Addition(Rule..::..Condition, Chunk) |
Allows a chunk to be added to the condition (with the ON setting) using the + operator
|
![]() ![]() |
Addition(Rule..::..Condition, DimensionValuePair) |
Allows a dimension-value pair to be added to the condition (with the ON setting) using the + operator
|
![]() ![]() |
Equality |
Allows two conditions to be compared to one another using the == operator
|
![]() ![]() |
Inequality |
Allows two conditions to be compared to one another using the != operator
|
![]() ![]() |
Subtraction(Rule..::..Condition, Agent) |
Allows an agent to be added to the condition (with the OFF setting) using the - operator
|
![]() ![]() |
Subtraction(Rule..::..Condition, Chunk) |
Allows a chunk to be added to the condition (with the OFF setting) using the - operator
|
![]() ![]() |
Subtraction(Rule..::..Condition, DimensionValuePair) |
Allows a dimension-value pair to be added to the condition (with the OFF setting) using the - operator
|
Properties
Name | Description | |
---|---|---|
![]() |
Count |
Gets the number of world objects in the condition
|
![]() |
IsMatchAll |
Specifies whether the condition is in a "match-all" state (i.e., all of the world objects
in the condition are set to True or ON)
|
![]() |
IsReadOnly |
Specifies whether the condition is in a read-only (i.e., immutable or locked) state
|
![]() |
Item[([( Guid])]) |
Gets/sets the ON/OFF setting for the world object with the specified world ID
|
![]() |
Item[([( IWorldObject])]) |
Gets/sets the ON/OFF setting for the specified world object
|
![]() |
Item[([( Object, IComparable])]) |
Gets/sets the ON/OFF setting for the dimension-value pair with the specified dimension and value IDs
|
![]() |
Weight |
Gets the weight of the condition
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IEnumerable..::..GetEnumerator |
Gets an enumerator for the condition
|