StepController
public
class
StepController
extends Object
java.lang.Object | |
↳ | com.google.android.libraries.car.app.testing.navigation.model.StepController |
A controller that allows testing of a Step
.
This controller allows retrieving the following fields:
- The
Maneuver
set viaStep.Builder.setManeuver(Maneuver)
. - The
Lane
s added viaStep.Builder.addLane(Lane)
. - The cue set via
Step.builder(CharSequence)
orStep.Builder.setCue(CharSequence)
. - The road set via
Step.Builder.setRoad(CharSequence)
.
Summary
Public methods | |
---|---|
Step
|
get()
Retrieves the |
String
|
getCue()
Retrieves the cue set in the |
List<LaneController>
|
getLanes()
Returns a list of |
Maneuver
|
getManeuver()
Retrieves the |
String
|
getRoad()
Retrieves the road set in the |
static
StepController
|
of(Step step)
Creates a |
Inherited methods | |
---|---|
Public methods
getCue
public String getCue ()
Retrieves the cue set in the Step
being controlled.
The values returned are the CharSequence.toString()
for the cue provided.
Returns | |
---|---|
String |
getLanes
public List<LaneController> getLanes ()
Returns a list of LaneController
s, each containing a Lane
added via Step.Builder.addLane(Lane)
.
Returns | |
---|---|
List<LaneController> |
getManeuver
public Maneuver getManeuver ()
Retrieves the Maneuver
that is set in the Step
that is being controlled, or
null
if none is present.
Returns | |
---|---|
Maneuver |
getRoad
public String getRoad ()
Retrieves the road set in the Step
being controlled, or null
if none is
present.
The values returned are the CharSequence.toString()
for the road provided.
Returns | |
---|---|
String |
of
public static StepController of (Step step)
Creates a StepController
to control a Step
for testing.
Parameters | |
---|---|
step |
Step |
Returns | |
---|---|
StepController |