C# 클래스 Cream.Variable

Variables. A variable is a component of a {@linkplain Network constraint network}. A variable is constructed with an initial {@linkplain Domain domain} which specifies the set of Elements over which the variable ranges. See {@link Network} for example programs to construct variables and Add them to a constraint network.
상속: ICloneable
파일 보기 프로젝트 열기: kikoanis/CSharpCream 1 사용 예제들

공개 메소드들

메소드 설명
ClearWatch ( ) : void
Clone ( ) : Object
IsModified ( ) : bool
SetWatch ( ) : void
ToString ( ) : String

Returns the name of this variable.

UpdateDomain ( Domain d, Trail trail ) : void

Updates the domain of the current variable with the parameter domain d after pushing the Trail trial

Variable ( Cream.Network net, Domain d ) : System

Constructs a variable of the network with an initial domain d and a default name. This constructor is equivalent to Variable(network, d, null).

Variable ( Cream.Network net, Domain d, String name ) : System

Constructs a variable of the network with an initial domain d and a name specified by the parameter name. When the parameter name is null, default names (v1, v2, and so on) are used.

보호된 메소드들

메소드 설명
ClearModified ( ) : void
Copy ( Cream.Network net ) : Variable

Creates a Copy of this variable for a new network.

SetModified ( ) : void

메소드 상세

ClearModified() 보호된 메소드

protected ClearModified ( ) : void
리턴 void

ClearWatch() 공개 메소드

public ClearWatch ( ) : void
리턴 void

Clone() 공개 메소드

public Clone ( ) : Object
리턴 Object

Copy() 보호된 메소드

Creates a Copy of this variable for a new network.
protected Copy ( Cream.Network net ) : Variable
net Cream.Network
리턴 Variable

IsModified() 공개 메소드

public IsModified ( ) : bool
리턴 bool

SetModified() 보호된 메소드

protected SetModified ( ) : void
리턴 void

SetWatch() 공개 메소드

public SetWatch ( ) : void
리턴 void

ToString() 공개 메소드

Returns the name of this variable.
public ToString ( ) : String
리턴 String

UpdateDomain() 공개 메소드

Updates the domain of the current variable with the parameter domain d after pushing the Trail trial
public UpdateDomain ( Domain d, Trail trail ) : void
d Domain the domain to be updated with
trail Trail the trail to be pushed
리턴 void

Variable() 공개 메소드

Constructs a variable of the network with an initial domain d and a default name. This constructor is equivalent to Variable(network, d, null).
public Variable ( Cream.Network net, Domain d ) : System
net Cream.Network the network ///
d Domain the initial domain ///
리턴 System

Variable() 공개 메소드

Constructs a variable of the network with an initial domain d and a name specified by the parameter name. When the parameter name is null, default names (v1, v2, and so on) are used.
public Variable ( Cream.Network net, Domain d, String name ) : System
net Cream.Network the network ///
d Domain the initial domain ///
name String the name of the variable, or null for a default name ///
리턴 System