Package com.tnsai.planning
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.
Factory for creating PlannerHandle instances.
Discovered via ServiceLoader from tnsai-intelligence.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new planner handle for the given role class.static PlannerHandle.Factorydiscover()Discovers a Factory via ServiceLoader.
-
Method Details
-
create
Creates a new planner handle for the given role class.- Parameters:
roleClass- the role class containing@Goaland@ActionSpecannotations- Returns:
- new handle instance
-
discover
Discovers a Factory via ServiceLoader.- Returns:
- discovered factory, or null if tnsai-intelligence is not on classpath
-