Class DefaultShadowEntityMetaModel<Solution_,Entity_>
java.lang.Object
ai.timefold.solver.core.impl.domain.solution.descriptor.DefaultShadowEntityMetaModel<Solution_,Entity_>
- All Implemented Interfaces:
PlanningEntityMetaModel<Solution_,,Entity_> ShadowEntityMetaModel<Solution_,Entity_>
@NullMarked
public final class DefaultShadowEntityMetaModel<Solution_,Entity_>
extends Object
implements ShadowEntityMetaModel<Solution_,Entity_>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariable(VariableMetaModel<Solution_, Entity_, ?> variable) solution()Describes thePlanningSolutionthat owns this entity.toString()type()Returns the most specific class of the entity.Returns the shadow variables declared by the entity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.preview.api.domain.metamodel.PlanningEntityMetaModel
hasVariable, isGenuineMethods inherited from interface ai.timefold.solver.core.preview.api.domain.metamodel.ShadowEntityMetaModel
variable, variable
-
Method Details
-
entityDescriptor
-
solution
Description copied from interface:PlanningEntityMetaModelDescribes thePlanningSolutionthat owns this entity.- Specified by:
solutionin interfacePlanningEntityMetaModel<Solution_,Entity_> - Returns:
- never null, the solution meta-model.
-
type
Description copied from interface:PlanningEntityMetaModelReturns the most specific class of the entity.- Specified by:
typein interfacePlanningEntityMetaModel<Solution_,Entity_> - Returns:
- The entity type.
-
variables
Description copied from interface:ShadowEntityMetaModelReturns the shadow variables declared by the entity.- Specified by:
variablesin interfacePlanningEntityMetaModel<Solution_,Entity_> - Specified by:
variablesin interfaceShadowEntityMetaModel<Solution_,Entity_> - Returns:
- Shadow variables declared by the entity.
-
addVariable
-
toString
-