Interface CandidateGenerator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CandidateGenerator
Chooses which metros a Solver considers. The default generator offers every catalogue metro that all constraints admit; a custom one can narrow the field (for example to metros where the customer already has ports) or order it.
  • Method Details

    • candidates

      List<MetroFacts> candidates(DesignContext context)
      Parameters:
      context - the facts of this run
      Returns:
      the candidate metros, in a deterministic order