CspDomain Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines all the possible values for a term.

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Solvers.CspDomain

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public MustInherit Class CspDomain
public abstract class CspDomain
public ref class CspDomain abstract
[<AbstractClass>]
type CspDomain =  class end
public abstract class CspDomain

The CspDomain type exposes the following members.

Constructors

  Name Description
Protected method CspDomain Initializes a new instance of the CspDomain class.

Top

Properties

  Name Description
Public property Count Gets the number of distinct choices allowed in the domain.
Public property FirstValue Gets the first value in the restricted set.
Public property Kind Gets the type of values in the domain.
Public property LastValue Gets the last value in the restricted set.

Top

Methods

  Name Description
Public method ContainsValue Returns a value that indicates if a given value is a member of a domain.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetEqual Returns a value that indicates if two domains are equal.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Values Enumerates all values in a domain.

Top

Remarks

An implementation of a solver can pool equal value sets partially or completely.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SolverFoundation.Solvers Namespace