Artificial Intelligence
Artificial Intelligence
Information

Package class


      Represents a packet that includes a set of objects of the class Fact (from version 1.2.0.0)

Namespace : ielib
Assembly : ielib.dll
   C#
   public class Package

Constructors

Package(Package p) : Initializes a new instance of the Package class from another object of the same class.


Properties

Count : Gets the number of facts belonging to this package.

Id : Gets the ID of this object.

Item : Gets an element (an object of the class Fact) located at the specified index.

Name : Gets or sets the name of this object.

Tag : Gets or sets an object associated with this object.


Methods

Add(Fact f) : Adds a fact in this package.

Contains(Rule r) : Determines whether a rule is in this package.

LeavesOfPackage() : Gets the array of facts which are the leaves of the tree belonging to this package.

Remove(string aFactName) : Removes a fact with the specified name in this package.

Remove(int aFactId) : Removes a fact having the ID specified in this package.

RemoveAll() : Removes all the facts of this package.

RootsOfPackage() : Gets the array of facts which are the roots of the tree belonging to this package.