C# Класс Cream.Relation

Relation constraints. Possible combinations of two integer variables can be defined by a two-dimentional array of boolean values.
Наследование: Constraint
Показать файл Открыть проект

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

Метод Описание
Relation ( Cream.Network net, Variable v0, bool rel, Variable v1 ) : System

Adds a constraint meaning rel[v0][v1] to the network.

Relation ( Cream.Network net, Variable v0, bool rel, Variable v1, ConstraintTypes cType ) : System
Relation ( Cream.Network net, Variable v0, bool rel, Variable v1, ConstraintTypes cType, int weight ) : System
ToString ( ) : String

Защищенные методы

Метод Описание
Copy ( Cream.Network net ) : Constraint

Creates a Copy of this constraint for a new network net.

IsModified ( ) : bool
IsSatisfied ( ) : bool
Satisfy ( Trail trail ) : bool

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

Copy() защищенный Метод

Creates a Copy of this constraint for a new network net.
protected Copy ( Cream.Network net ) : Constraint
net Cream.Network
Результат Constraint

IsModified() защищенный Метод

protected IsModified ( ) : bool
Результат bool

IsSatisfied() защищенный Метод

protected IsSatisfied ( ) : bool
Результат bool

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

Adds a constraint meaning rel[v0][v1] to the network.
public Relation ( Cream.Network net, Variable v0, bool rel, Variable v1 ) : System
net Cream.Network the network ///
v0 Variable the first argument integer variable ///
rel bool two-dimentional array of boolean values ///
v1 Variable the second argument integer variable ///
Результат System

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

public Relation ( Cream.Network net, Variable v0, bool rel, Variable v1, ConstraintTypes cType ) : System
net Cream.Network
v0 Variable
rel bool
v1 Variable
cType ConstraintTypes
Результат System

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

public Relation ( Cream.Network net, Variable v0, bool rel, Variable v1, ConstraintTypes cType, int weight ) : System
net Cream.Network
v0 Variable
rel bool
v1 Variable
cType ConstraintTypes
weight int
Результат System

Satisfy() защищенный Метод

protected Satisfy ( Trail trail ) : bool
trail Trail
Результат bool

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

public ToString ( ) : String
Результат String