Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo committed Nov 26, 2024
1 parent 0b6dd74 commit c763a21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import ai.timefold.solver.core.impl.domain.variable.inverserelation.InverseRelationShadowVariableDescriptor;
import ai.timefold.solver.core.impl.score.director.InnerScoreDirector;

final class ExternalizedSingletonListInverseVariableProcessor<Solution_> {
final class ExternalizedListInverseVariableProcessor<Solution_> {

private final InverseRelationShadowVariableDescriptor<Solution_> shadowVariableDescriptor;
private final ListVariableDescriptor<Solution_> sourceVariableDescriptor;

public ExternalizedSingletonListInverseVariableProcessor(
public ExternalizedListInverseVariableProcessor(
InverseRelationShadowVariableDescriptor<Solution_> shadowVariableDescriptor,
ListVariableDescriptor<Solution_> sourceVariableDescriptor) {
this.shadowVariableDescriptor = shadowVariableDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ public ListVariableDescriptor<Solution_> getSourceVariableDescriptor() {
return sourceVariableDescriptor;
}

@Override
public void close() {
listVariableState.close();
}

@Override
public String toString() {
return getClass().getSimpleName() + "(" + sourceVariableDescriptor.getVariableName() + ")";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ListVariableState<Solution_> {
private final ListVariableDescriptor<Solution_> sourceVariableDescriptor;

private ExternalizedIndexVariableProcessor<Solution_> externalizedIndexProcessor = null;
private ExternalizedSingletonListInverseVariableProcessor<Solution_> externalizedInverseProcessor = null;
private ExternalizedListInverseVariableProcessor<Solution_> externalizedInverseProcessor = null;
private AbstractExternalizedNextPrevElementVariableProcessor<Solution_> externalizedPreviousElementProcessor = null;
private AbstractExternalizedNextPrevElementVariableProcessor<Solution_> externalizedNextElementProcessor = null;

Expand All @@ -39,7 +39,7 @@ public void linkDescriptor(IndexShadowVariableDescriptor<Solution_> shadowVariab

public void linkDescriptor(InverseRelationShadowVariableDescriptor<Solution_> shadowVariableDescriptor) {
this.externalizedInverseProcessor =
new ExternalizedSingletonListInverseVariableProcessor<>(shadowVariableDescriptor, sourceVariableDescriptor);
new ExternalizedListInverseVariableProcessor<>(shadowVariableDescriptor, sourceVariableDescriptor);
}

public void linkDescriptor(PreviousElementShadowVariableDescriptor<Solution_> shadowVariableDescriptor) {
Expand Down Expand Up @@ -258,8 +258,4 @@ public int getUnassignedCount() {
return unassignedCount;
}

void close() {
elementLocationMap = null;
}

}

0 comments on commit c763a21

Please sign in to comment.