score

public final static AutomaticScore score(Direction dir, ElevatorState state)
public final static AutomaticScore score(Direction dir)

Creates an AutomaticScore command to score in a specified direction.

Return

An AutomaticScore that performs the scoring action.

Parameters

dir

The direction in which to score.

state

The desired state of the elevator. Defaults to L4.