C# Class Cream.Constraint

An abstract class for constraints. A constraint is a component of a constraint network. See Network for example programs to construct constraints and Add them to a constraint network.
Show file Open project: kikoanis/CSharpCream Class Usage Examples

Private Properties

Property Type Description

Protected Methods

Method Description
ClearCondition ( ) : void
Constraint ( Cream.Network net ) : System

Constructor. (for invocation by subclass constructors, typically implicit)

Constraint ( Cream.Network net, ConstraintTypes cType ) : System

Constructor. (for invocation by subclass constructors, typically implicit)

Constraint ( Cream.Network net, ConstraintTypes cType, int weight ) : System

Constructor. (for invocation by subclass constructors, typically implicit)

Copy ( Cream.Network net ) : Constraint

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

Copy ( Variable v0, Cream.Network net ) : Variable
Copy ( Variable v0, Cream.Network net ) : Cream.Variable[]
ExtractCondition ( ) : Condition
IsModified ( ) : bool
IsModified ( Variable v ) : bool
IsSatisfied ( ) : bool
Satisfy ( Trail trail ) : bool
ToString ( Variable v ) : String
ToString ( int a ) : String

Method Details

ClearCondition() protected method

protected ClearCondition ( ) : void
return void

Constraint() protected method

Constructor. (for invocation by subclass constructors, typically implicit)
protected Constraint ( Cream.Network net ) : System
net Cream.Network
return System

Constraint() protected method

Constructor. (for invocation by subclass constructors, typically implicit)
protected Constraint ( Cream.Network net, ConstraintTypes cType ) : System
net Cream.Network
cType ConstraintTypes
return System

Constraint() protected method

Constructor. (for invocation by subclass constructors, typically implicit)
protected Constraint ( Cream.Network net, ConstraintTypes cType, int weight ) : System
net Cream.Network
cType ConstraintTypes
weight int
return System

Copy() protected abstract method

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

Copy() protected static method

protected static Copy ( Variable v0, Cream.Network net ) : Variable
v0 Variable
net Cream.Network
return Variable

Copy() protected static method

protected static Copy ( Variable v0, Cream.Network net ) : Cream.Variable[]
v0 Variable
net Cream.Network
return Cream.Variable[]

ExtractCondition() protected method

protected ExtractCondition ( ) : Condition
return Condition

IsModified() protected abstract method

protected abstract IsModified ( ) : bool
return bool

IsModified() protected static method

protected static IsModified ( Variable v ) : bool
v Variable
return bool

IsSatisfied() protected abstract method

protected abstract IsSatisfied ( ) : bool
return bool

Satisfy() protected abstract method

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

ToString() protected static method

protected static ToString ( Variable v ) : String
v Variable
return String

ToString() protected static method

protected static ToString ( int a ) : String
a int
return String