public class

DrivingLaneStatus

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

Class Overview

Represents the status of the lanes referenced by their number where the numbering starts from the outermost lane of the road.

Summary

Public Constructors
DrivingLaneStatus()
Creates a new instance.
Public Methods
boolean equals(Object o)
int hashCode()
boolean isHardShoulderClosed()
Returns whether the hard shoulder is closed.
boolean isLaneClosed(int laneNumber)
Returns whether the specified lane is closed or open.
void setHardShoulderClosed(boolean closed)
Sets whether the hard shoulder is closed.
void setLaneClosed(int laneNumber, boolean closed)
Sets whether the specified lane is closed or opened.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DrivingLaneStatus ()

Creates a new instance.

Public Methods

public boolean equals (Object o)

public int hashCode ()

public boolean isHardShoulderClosed ()

Returns whether the hard shoulder is closed.

Returns
  • whether the hard shoulder is closed.

public boolean isLaneClosed (int laneNumber)

Returns whether the specified lane is closed or open.

Parameters
laneNumber is the lane identifier
Returns
  • true if the lane is closed, false otherwise
Throws
IllegalArgumentException thrown if the lane number us not valid

public void setHardShoulderClosed (boolean closed)

Sets whether the hard shoulder is closed.

Parameters
closed whether the hard shoulder is closed

public void setLaneClosed (int laneNumber, boolean closed)

Sets whether the specified lane is closed or opened.

Parameters
laneNumber lane number is the lane identifier, the first lane is the outermost lane, starts from zero
closed true if the lane is closed, false otherwise
Throws
IllegalArgumentException thrown if the lane number us not valid

public String toString ()