C# 클래스 Cream.Relation

Relation constraints. Possible combinations of two integer variables can be defined by a two-dimentional array of boolean values.
상속: Constraint
파일 보기 프로젝트 열기: kikoanis/CSharpCream

공개 메소드들

메소드 설명
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