C# Класс 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}.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetDomain() публичный Метод

Returns the domain of the given variable in the solution.
public GetDomain ( Variable v ) : Domain
v Variable the variable ///
Результат Domain

GetIntValue() публичный Метод

Returns the integer value of the given variable in the solution.
public GetIntValue ( Variable v ) : int
v Variable the variable ///
Результат int

Solution() публичный Метод

Constructs a solution from the given network.
public Solution ( Cream.Network network ) : System
network Cream.Network the constraint network ///
Результат System

ToString() публичный Метод

Returns a readable string representation of this solution.
public ToString ( ) : String
Результат String