[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
Public method Rule..::..Condition
Initializes a new instance of the Rule..::..Condition class

Methods

  Name Description
Public method Add(Rule..::..Condition..::..ConditionTuple)
Adds a world object and its ON/OFF specification (in the form of a Rule..::..Condition..::..ConditionTuple) to the condition
Public method Add(Guid, Boolean)
Adds a world object (based on the world ID of the object) and its ON/OFF specification to the condition
Public method Add(IWorldObject, Boolean)
Adds a world object and its ON/OFF specification to the condition
Public method Clear
Clears the condition
Public method Contains(Guid)
Determines whether the world object with the specified world ID is contained within the condition (regardless of its ON/OFF specification)
Public method Contains(IWorldObject)
Determines whether the world object is contained within the condition (regardless of its ON/OFF specification)
Public method 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
Public method 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
Public method Contains(IWorldObject, Boolean)
Determines whether the world object is contained within the condition and has the specified ON/OFF setting
Public method CopyTo
Copies the condition to the specified array starting at the specified index
Public method Equals(Object)
Determines whether the specified object is a Condition and whether it is equal to this condition
(Overrides Object..::..Equals(Object).)
Public method Equals(Rule..::..Condition)
Determines whether the specified condition is equal to this condition
Public method GetEnumerator
Gets an enumerator for the condition
Public method GetHashCode
Gets the hash code for this condition
(Overrides Object..::..GetHashCode()()()().)
Public method Remove(Guid)
Removes the world object with the specified world ID from the condition
Public method Remove(IWorldObject)
Removes the specified world object from the condition
Public method Remove(Rule..::..Condition..::..ConditionTuple)
Removes a world object and its ON/OFF specification (in the form of a Rule..::..Condition..::..ConditionTuple) from the condition
Public method ToString()()()()
Returns a string representation of the condition
(Overrides Object..::..ToString()()()().)
Public method ToString(String)
Returns a string representation of the condition indented using the specified indent string

Operators

  Name Description
Public operator Static member Addition(Rule..::..Condition, Agent)
Allows an agent to be added to the condition (with the ON setting) using the + operator
Public operator Static member Addition(Rule..::..Condition, Chunk)
Allows a chunk to be added to the condition (with the ON setting) using the + operator
Public operator Static member Addition(Rule..::..Condition, DimensionValuePair)
Allows a dimension-value pair to be added to the condition (with the ON setting) using the + operator
Public operator Static member Equality
Allows two conditions to be compared to one another using the == operator
Public operator Static member Inequality
Allows two conditions to be compared to one another using the != operator
Public operator Static member Subtraction(Rule..::..Condition, Agent)
Allows an agent to be added to the condition (with the OFF setting) using the - operator
Public operator Static member Subtraction(Rule..::..Condition, Chunk)
Allows a chunk to be added to the condition (with the OFF setting) using the - operator
Public operator Static member 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
Public property Count
Gets the number of world objects in the condition
Public property 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)
Public property IsReadOnly
Specifies whether the condition is in a read-only (i.e., immutable or locked) state
Public property Item[([( Guid])])
Gets/sets the ON/OFF setting for the world object with the specified world ID
Public property Item[([( IWorldObject])])
Gets/sets the ON/OFF setting for the specified world object
Public property Item[([( Object, IComparable])])
Gets/sets the ON/OFF setting for the dimension-value pair with the specified dimension and value IDs
Protected property Weight
Gets the weight of the condition

Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method IEnumerable..::..GetEnumerator
Gets an enumerator for the condition

See Also