Class Constraint

java.lang.Object
xal.extension.solver.constraint.Constraint

public abstract class Constraint extends Object
Constraint is the class which holds the users' constraint.
Author:
ky6
  • Field Details

    • name

      protected String name
  • Constructor Details

    • Constraint

      protected Constraint(String aName)
      Creates a new instance of Constraint
      Parameters:
      aName - The name of the constraint.
  • Method Details

    • validate

      public abstract TrialVeto validate(Trial trial)
      Used to validate whether a trial is valid.
      Parameters:
      trial - The trial to be validated.
      Returns:
      A trial veto.