FreeHEP API
Version current

hep.aida.ext
Interface IDomainConstraint


public interface IDomainConstraint

Source Code:
IDomainConstraint.java

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

public 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

public 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

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

Returns:
The IConstraint[] array of constraints.

nConstraints

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

Returns:
The number of constraints.

reset

public void reset()
Remove all the constraints.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.