Skip to content

Commit

Permalink
rename FishingLocationChecker to FishingLocationLegalityChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaspayette committed Feb 3, 2025
1 parent b37014b commit f8f4372
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.util.function.Supplier;

@RequiredArgsConstructor
public class FishingLocationChecker implements Predicate<Int2D> {
public class FishingLocationLegalityChecker implements Predicate<Int2D> {

private final Regulations regulations;
private final GridPathFinder pathFinder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class FishingLocationCheckerFactory extends VesselScopeFactory<FishingLocationChecker> {
public class FishingLocationLegalityCheckerFactory
extends VesselScopeFactory<FishingLocationLegalityChecker> {

private Factory<? extends Regulations> regulations;
private Factory<? extends GridPathFinder> pathFinder;
private Factory<? extends Distance> distance;

@Override
protected FishingLocationChecker newInstance(
protected FishingLocationLegalityChecker newInstance(
final Simulation simulation,
final Vessel vessel
) {
return new FishingLocationChecker(
return new FishingLocationLegalityChecker(
regulations.get(simulation),
pathFinder.get(simulation),
distance.get(simulation),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import uk.ac.ox.poseidon.agents.registers.Register;
import uk.ac.ox.poseidon.agents.registers.RegisterFactory;
import uk.ac.ox.poseidon.agents.registers.RegisteringFactory;
import uk.ac.ox.poseidon.agents.regulations.FishingLocationCheckerFactory;
import uk.ac.ox.poseidon.agents.regulations.FishingLocationLegalityCheckerFactory;
import uk.ac.ox.poseidon.agents.regulations.NeverPermittedFactory;
import uk.ac.ox.poseidon.agents.tables.FishingActionListenerTableFactory;
import uk.ac.ox.poseidon.agents.vessels.RandomHomePortFactory;
Expand Down Expand Up @@ -151,7 +151,7 @@ public class ExternalScenario extends Scenario {
distance
);
private VesselScopeFactory<? extends Predicate<Int2D>> fishingLocationChecker =
new FishingLocationCheckerFactory(
new FishingLocationLegalityCheckerFactory(
new NeverPermittedFactory(),
pathFinder,
distance
Expand Down

0 comments on commit f8f4372

Please sign in to comment.