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
Show file Open project: kikoanis/CSharpCream

Public Methods

Method 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

Protected Methods

Method 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 method

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

IsModified() protected method

protected IsModified ( ) : bool
return bool

IsSatisfied() protected method

protected IsSatisfied ( ) : bool
return bool

Relation() public method

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 ///
return System

Relation() public method

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
return System

Relation() public method

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
return System

Satisfy() protected method

protected Satisfy ( Trail trail ) : bool
trail Trail
return bool

ToString() public method

public ToString ( ) : String
return String