SolutionMapping Class

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

Defines the mapping between a model and a ConstraintSystem object.

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Services.SolutionMapping
    Microsoft.SolverFoundation.Services.CspSolutionMapping
    Microsoft.SolverFoundation.Services.PluginSolutionMapping

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

Syntax

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

The SolutionMapping type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Protected propertyStatic member EmptyArray Gets a one-dimensional, empty array.
Protected property Model Gets the Solver Foundation Services model that is solved.

Top

Methods

  Name Description
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 GetComponents Returns a collection of components that are related to a constraint.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetIndexes(Constraint) Returns a collection of indexes that are related to a constraint.
Public method GetIndexes(Decision) Returns a collection of indexes that are related to a decision.
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 ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetConstraint Returns a value that indicates whether a row identifier is mapped to a constraint.
Public method TryGetDecision Returns a value that indicates whether a row identifier is mapped to a decision.
Public method TryGetGoal Returns a value that indicates whether a row identifier is mapped to a goal.
Public method TryGetValue(Goal, Rational%) Returns the value of the specified goal.
Public method TryGetValue(Decision, array<Object[], Rational%) Returns the value of the specified decision.
Public method TryGetVid(Goal, Int32%) Returns a row index associated with a specified goal.
Public method TryGetVid(Decision, array<Object[], Int32%) Returns a row index associated with a specified decision.
Public method TryGetVid(Constraint, array<Object[], Int32, Int32%) Returns a row index associated with a specified constraint.

Top

Remarks

The solution mapping maps between decision values, goals, and constraints, and solver terms and variable indexes.

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.Services Namespace