hep.aida.ext
Interface IDomainConstraint


public interface IDomainConstraint


Method Summary
 boolean addConstraint(IConstraint constraint)
          Add a new constraint.
 IConstraint[] constraints()
          The constraints currently in the domain.
 int nConstraints()
          The number of constraints currently in the domain.
 boolean removeConstraint(IConstraint constraint)
          Remove a constraint.
 void reset()
          Remove all the constraints.
 

Method Detail

addConstraint

boolean addConstraint(IConstraint constraint)
Add a new constraint.

Parameters:
constraint - The constraint to be added.
Returns:
true if the constraint was added succesfully. false otherwise.

removeConstraint

boolean removeConstraint(IConstraint constraint)
Remove a constraint.

Parameters:
constraint - The constraint to be removed.
Returns:
true if the constraint was removed succesfully. false otherwise.

constraints

IConstraint[] constraints()
The constraints currently in the domain.

Returns:
The IConstraint[] array of constraints.

nConstraints

int nConstraints()
The number of constraints currently in the domain.

Returns:
The number of constraints.

reset

void reset()
Remove all the constraints.



jHepWork 3.2 © jWork.org