Interface GenuineVariableMetaModel<Solution_,Entity_,Value_>
- Type Parameters:
Solution_- the solution typeEntity_- the entity typeValue_- the value type
- All Superinterfaces:
VariableMetaModel<Solution_,Entity_, Value_>
- All Known Subinterfaces:
PlanningListVariableMetaModel<Solution_,,Entity_, Value_> PlanningVariableMetaModel<Solution_,Entity_, Value_>
- All Known Implementing Classes:
DefaultPlanningListVariableMetaModel,DefaultPlanningVariableMetaModel
@NullMarked
public sealed interface GenuineVariableMetaModel<Solution_,Entity_,Value_>
extends VariableMetaModel<Solution_,Entity_,Value_>
permits PlanningVariableMetaModel<Solution_,Entity_,Value_>, PlanningListVariableMetaModel<Solution_,Entity_,Value_>
A
VariableMetaModel that represents a basic planning variable.
This package and all of its contents are part of the Neighborhoods API, which is under development and is only offered as a preview feature. There are no guarantees for backward compatibility; any class, method, or field may change or be removed without prior notice, although we will strive to avoid this as much as possible.
We encourage you to try the API and give us feedback on your experience with it, before we finalize the API. Please direct your feedback to Timefold Solver GitHub or to Timefold Discord.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns true if this variable is a list variable.Methods inherited from interface ai.timefold.solver.core.preview.api.domain.metamodel.VariableMetaModel
entity, isGenuine, name, type
-
Method Details
-
isListVariable
default boolean isListVariable()Returns true if this variable is a list variable. Effectively checks if this variable is an instance ofPlanningListVariableMetaModel.- Returns:
- True if this variable is a list variable, false if it is a basic variable.
-