public class

RegSpeedLimit

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.RegSpeedLimit

Class Overview

Represents a regulatory speed limit.

Summary

Public Constructors
RegSpeedLimit()
Creates a new RegSpeedLimit instance
Public Methods
boolean equals(Object o)
double getSpeed(SpeedUnit unit)
Returns the speed.
RegSpeedLimitType getType()
Returns the speed limit type.
int hashCode()
void setSpeed(double speed, SpeedUnit speedUnit)
Sets the speed.
void setType(RegSpeedLimitType type)
Sets the speed limit type
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RegSpeedLimit ()

Creates a new RegSpeedLimit instance

Public Methods

public boolean equals (Object o)

public double getSpeed (SpeedUnit unit)

Returns the speed.

Parameters
unit target unit
Returns
  • speed in the specified unit or null if not defined

public RegSpeedLimitType getType ()

Returns the speed limit type.

Returns
  • speed limit type

public int hashCode ()

public void setSpeed (double speed, SpeedUnit speedUnit)

Sets the speed.

Parameters
speed speed value
speedUnit speed unit

public void setType (RegSpeedLimitType type)

Sets the speed limit type

Parameters
type speed limit type

public String toString ()