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}.
Afficher le fichier Open project: kikoanis/CSharpCream Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetIntValue() public méthode

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

Solution() public méthode

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

ToString() public méthode

Returns a readable string representation of this solution.
public ToString ( ) : String
Résultat String