omnics
Interface ValuationStructure

All Known Implementing Classes:
AdditiveValuation, ClassicalValuation

public interface ValuationStructure

Represents a valuation structure S=(E,+,<=,0,1) A soft constraint network is a CN equipped with a valuation structure. A total order is assumed.

Author:
Cristian Frasinaru

Field Summary
static int ALLOWED
          An constant holding the minimum value of the valuation structure.
static int FORBIDDEN
          A constant holding the maximum value of the valuation structure.
static int MAX
          A constant holding the maximum value of the valuation structure.
static int MIN
          A constant holding the minimum value of the valuation structure.
 
Method Summary
 int compareTo(int a, int b)
          The operator which defines the total order.
 int plus(int a, int b)
          The plus operator.
 

Field Detail

MIN

static final int MIN
A constant holding the minimum value of the valuation structure.

See Also:
Constant Field Values

MAX

static final int MAX
A constant holding the maximum value of the valuation structure.

See Also:
Constant Field Values

ALLOWED

static final int ALLOWED
An constant holding the minimum value of the valuation structure. It also denotes the valuation for an allowed tuple, without any penalty. Convenience name for MIN.

See Also:
Constant Field Values

FORBIDDEN

static final int FORBIDDEN
A constant holding the maximum value of the valuation structure. It also denotes the vauation for a forbidden tuple. Convenience name for MAX.

See Also:
Constant Field Values
Method Detail

plus

int plus(int a,
         int b)
The plus operator.


compareTo

int compareTo(int a,
              int b)
The operator which defines the total order.