Skip to content

Commit

Permalink
style(implementationbase): fix indentation in MoveToTarget and `Abs…
Browse files Browse the repository at this point in the history
…tractConfigurableMoveNode`
  • Loading branch information
anitvam committed Nov 11, 2024
1 parent 6711a44 commit 60f0f4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public abstract class AbstractConfigurableMoveNode<T, P extends Position<P>> ext
* @param speedSelectionStrategy
* the speed selection strategy
*/
protected AbstractConfigurableMoveNode(final Environment<T, P> environment,
protected AbstractConfigurableMoveNode(
final Environment<T, P> environment,
final Node<T> node,
final RoutingStrategy<T, P> routingStrategy,
final TargetSelectionStrategy<T, P> target,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,20 @@ public final class MoveToTarget<T, P extends Position2D<P>> extends AbstractConf
* @param speed
* the speed of the node
*/
public MoveToTarget(final Environment<T, P> environment,
final Node<T> node,
final Reaction<T> reaction,
final Molecule trackMolecule,
final double speed) {
super(environment, node,
(p1, p2) -> new PolygonalChain<>(ImmutableList.of(p1, p2)),
new FollowTarget<>(environment, node, trackMolecule),
new ConstantSpeed<>(reaction, speed));
public MoveToTarget(
final Environment<T, P> environment,
final Node<T> node,
final Reaction<T> reaction,
final Molecule trackMolecule,
final double speed
) {
super(
environment,
node,
(p1, p2) -> new PolygonalChain<>(ImmutableList.of(p1, p2)),
new FollowTarget<>(environment, node, trackMolecule),
new ConstantSpeed<>(reaction, speed)
);
this.trackMolecule = trackMolecule;
this.speed = speed;
}
Expand Down

0 comments on commit 60f0f4d

Please sign in to comment.