Interface PlannerHandle.Factory

Enclosing interface:
PlannerHandle
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 static interface PlannerHandle.Factory
Factory for creating PlannerHandle instances. Discovered via ServiceLoader from tnsai-intelligence.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Class<?> roleClass)
    Creates a new planner handle for the given role class.
    Discovers a Factory via ServiceLoader.
  • Method Details

    • create

      PlannerHandle create(Class<?> roleClass)
      Creates a new planner handle for the given role class.
      Parameters:
      roleClass - the role class containing @Goal and @ActionSpec annotations
      Returns:
      new handle instance
    • discover

      static PlannerHandle.Factory discover()
      Discovers a Factory via ServiceLoader.
      Returns:
      discovered factory, or null if tnsai-intelligence is not on classpath