C# Class Cream.Solution

Solutions. Solutions are returned by {@linkplain Solver constraint solvers}. A solution consists of {@linkplain Domain domains} for variables and {@linkplain Code a code}.
Show file Open project: kikoanis/CSharpCream Class Usage Examples

Public Methods

Method Description
GetDomain ( Variable v ) : Domain

Returns the domain of the given variable in the solution.

GetIntValue ( Variable v ) : int

Returns the integer value of the given variable in the solution.

Solution ( Cream.Network network ) : System

Constructs a solution from the given network.

ToString ( ) : String

Returns a readable string representation of this solution.

Method Details

GetDomain() public method

Returns the domain of the given variable in the solution.
public GetDomain ( Variable v ) : Domain
v Variable the variable ///
return Domain

GetIntValue() public method

Returns the integer value of the given variable in the solution.
public GetIntValue ( Variable v ) : int
v Variable the variable ///
return int

Solution() public method

Constructs a solution from the given network.
public Solution ( Cream.Network network ) : System
network Cream.Network the constraint network ///
return System

ToString() public method

Returns a readable string representation of this solution.
public ToString ( ) : String
return String