public class

ThrottlePosition

extends Object
implements Comparable<T>
java.lang.Object
   ↳ com.commsignia.v2x.client.model.bsm.ThrottlePosition

Class Overview

Represents throttle position in .5 percents (BSM).

Summary

Constants
int MAX_VALUE Represents the maximum throttle position value in .5 percents.
int MIN_VALUE Represents the minimum throttle position value in .5 percents.
Fields
public static final ThrottlePosition UNAVAILABLE Represents the unavailable throttle position value.
Public Methods
int compareTo(ThrottlePosition o)
boolean equals(Object o)
int hashCode()
static ThrottlePosition of(int value)
Creates a throttle position instance
String toString()
static ThrottlePosition unavailable()
Returns the unavailable value for throttle position.
int value()
Returns the throttle position value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Constants

public static final int MAX_VALUE

Represents the maximum throttle position value in .5 percents.

Constant Value: 200 (0x000000c8)

public static final int MIN_VALUE

Represents the minimum throttle position value in .5 percents.

Constant Value: 0 (0x00000000)

Fields

public static final ThrottlePosition UNAVAILABLE

Represents the unavailable throttle position value.

Public Methods

public int compareTo (ThrottlePosition o)

public boolean equals (Object o)

public int hashCode ()

public static ThrottlePosition of (int value)

Creates a throttle position instance

Parameters
value throttle position in .5 percents
Returns
  • throttle position instance

public String toString ()

public static ThrottlePosition unavailable ()

Returns the unavailable value for throttle position.

Returns
  • unavailable value for throttle position.

public int value ()

Returns the throttle position value.

Returns
  • throttle position value in .5 percents