Click here to Skip to main content
15,886,807 members
Articles / Programming Languages / C#

Use Rules In Your Applications

Rate me:
Please Sign up or sign in to vote.
4.84/5 (19 votes)
29 Aug 2006CPOL2 min read 111.9K   2.7K   93  
A Rules Engine class library with source code and documentation
<html dir="LTR">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
    <title>RuleObject Members</title>
    <xml>
    </xml>
    <link rel="stylesheet" type="text/css" href="MSDN.css" />
  </head>
  <body id="bodyID" class="dtBODY">
    <div id="nsbanner">
      <div id="bannerrow1">
        <table class="bannerparthead" cellspacing="0">
          <tr id="hdr">
            <td class="runninghead">Rules Processing Library by Jaxlab</td>
            <td class="product">
            </td>
          </tr>
        </table>
      </div>
      <div id="TitleRow">
        <h1 class="dtH1">RuleObject Members
					</h1>
      </div>
    </div>
    <div id="nstext">
      <p>
        <a href="Jaxlab.Rules.RuleObject.html">RuleObject overview</a>
      </p>
      <h4 class="dtH4">Public Instance Constructors</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
          <tr VALIGN="top">
            <td width="50%">
              <img src="pubmethod.gif" />
              <a href="Jaxlab.Rules.RuleObjectConstructor.html">RuleObject</a>
            </td>
            <td width="50%">Overloaded. Initializes a new instance of the RuleObject class.</td>
          </tr>
        </table>
      </div>
      <h4 class="dtH4">Public Instance Properties</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.Expression.html">Expression</a></td><td width="50%"> The expression this RuleObject will use. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.HasExpression.html">HasExpression</a></td><td width="50%"> Property for the existence of an Expression in this RuleObject. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.HasSubRules.html">HasSubRules</a></td><td width="50%"> If any Rules have been added to this RuleObject then it is True, False otherwise </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.ID.html">ID</a></td><td width="50%"> The ID that this RuleObject is referenced by. Without an ID this RuleObject cannot be found. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.Item.html">Item</a></td><td width="50%"> Indexer for Actions in this RuleObject. (Index based) </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.ParentRuleObject.html">ParentRuleObject</a></td><td width="50%"> Get the containing RuleObject of this RuleObject. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Jaxlab.Rules.RuleObject.UseInferencing.html">UseInferencing</a></td><td width="50%"> Sets the bool for using inferencing. </td></tr></table>
      </div>
      <h4 class="dtH4">Public Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.AddAction.html">AddAction</a></td><td width="50%"> Adds a Action object to this RuleObject </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.AddSubRule.html">AddSubRule</a></td><td width="50%"> Adds a RuleObject to this RuleObject </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.CompareTo.html">CompareTo</a></td><td width="50%"> The CompareTo method is used to Sort the RuleObject Collection. The ID is the Compareto object. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassEqualsTopic.htm">Equals</a> (inherited from <b>Object</b>)</td><td width="50%">
        Determines whether the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is equal to the current <b>Object</b>.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.GetActionCount.html">GetActionCount</a></td><td width="50%"> Get the number of Actions this RuleObject has </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetHashCodeTopic.htm">GetHashCode</a> (inherited from <b>Object</b>)</td><td width="50%">
        Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.GetPathID.html">GetPathID</a></td><td width="50%"> Concatenates and returns the RuleID Path for this Rule </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.GetSubRule_overloads.html">GetSubRule</a></td><td width="50%">Overloaded.  Gets the RuleObject from the SubRules collection that corresponds to the index. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.GetSubRuleCount.html">GetSubRuleCount</a></td><td width="50%"> The number of SubRules this RuleObject has. 0 is there are none. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">
        Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.RemoveRule.html">RemoveRule</a></td><td width="50%"> Remove a RuleObject from this RuleObject by Index. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Jaxlab.Rules.RuleObject.SetRule_overloads.html">SetRule</a></td><td width="50%">Overloaded.  Replace a SubRule with the supplied RuleObject </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">
        Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.
      </td></tr></table>
      </div>
      <h4 class="dtH4">Protected Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassFinalizeTopic.htm">Finalize</a> (inherited from <b>Object</b>)</td><td width="50%">
        Allows an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> to attempt to free resources and perform other cleanup operations before the <b>Object</b> is reclaimed by garbage collection.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassMemberwiseCloneTopic.htm">MemberwiseClone</a> (inherited from <b>Object</b>)</td><td width="50%">
        Creates a shallow copy of the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.
      </td></tr></table>
      </div>
      <h4 class="dtH4">Private Instance Fields</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_bUseInferencing.html">m_bUseInferencing</a></td><td width="50%"> Bool if this Rule is to be used in Inferencing </td></tr>
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_oActionList.html">m_oActionList</a></td><td width="50%"> Action collection </td></tr>
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_oParentRule.html">m_oParentRule</a></td><td width="50%"> Parent Rule of this Rule. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_oSubRules.html">m_oSubRules</a></td><td width="50%"> Sub-Rule collection </td></tr>
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_sExpression.html">m_sExpression</a></td><td width="50%"> Expression of this Rule </td></tr>
<tr VALIGN="top"><td width="50%"><img src="privfield.gif"></img><a href="Jaxlab.Rules.RuleObject.m_sID.html">m_sID</a></td><td width="50%"> Id of this Rule </td></tr></table>
      </div>
      <h4 class="dtH4">See Also</h4>
      <p>
        <a href="Jaxlab.Rules.RuleObject.html">RuleObject Class</a> | <a href="Jaxlab.Rules.html">Jaxlab.Rules Namespace</a></p>
      <object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
        <param name="Keyword" value="RuleObject class">
        </param>
        <param name="Keyword" value="Jaxlab.Rules.RuleObject class">
        </param>
        <param name="Keyword" value="RuleObject class, all members">
        </param>
      </object>
      <hr />
      <div id="footer">
        <p>
          <a href="mailto:jeff_bramlett@hotmail.com?subject=Rules%20Processing%20Library%20by%20Jaxlab%20Documentation%20Feedback:%20RuleObject%20Members&#xD;&#xA;						">Send comments on this topic.</a>
        </p>
        <p>
          <a href="http://www.jaxlab.com">Copyright by Jeff Bramlett 2005</a>
        </p>
        <p>Generated from assembly JaxlabRulesEngine [1.0.2431.14881]</p>
      </div>
    </div>
  </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Website: http://www.somedeveloper.us

Comments and Discussions