C# Class Cream.Relation

Relation constraints. Possible combinations of two integer variables can be defined by a two-dimentional array of boolean values.
Inheritance: Constraint
Afficher le fichier Open project: kikoanis/CSharpCream

Méthodes publiques

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

Méthodes protégées

Méthode Description
Copy ( Cream.Network net ) : Constraint

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

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

Method Details

Copy() protected méthode

Creates a Copy of this constraint for a new network net.
protected Copy ( Cream.Network net ) : Constraint
net Cream.Network
Résultat Constraint

IsModified() protected méthode

protected IsModified ( ) : bool
Résultat bool

IsSatisfied() protected méthode

protected IsSatisfied ( ) : bool
Résultat bool

Relation() public méthode

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 ///
Résultat System

Relation() public méthode

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
Résultat System

Relation() public méthode

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
Résultat System

Satisfy() protected méthode

protected Satisfy ( Trail trail ) : bool
trail Trail
Résultat bool

ToString() public méthode

public ToString ( ) : String
Résultat String