public class

Intersection

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

Class Overview

Represents an intersection.

Summary

Public Constructors
Intersection()
Creates a new instance.
Public Methods
void clearLaneWidth()
Clears the lane width value.
boolean equals(Object o)
GenericLane findLaneByNumber(long laneNumber)
Find a lane by lane number
long getId()
Returns the intersection id.
List<GenericLane> getIntersectionLaneSet()
Returns the set of lanes of this intersection
Double getLaneWidth(LengthUnit unit)
Returns the width of the lane in the specified units.
String getName()
Returns the name of the intersection
Position3D getRefPoint()
Returns the reference point of this intersection
int getRevision()
Returns the revision.
List<RegSpeedLimit> getSpeedLimits()
Returns the list of speed limits.
boolean hasLaneWidth()
Returns true if the lane width is set.
int hashCode()
void setId(long id)
Sets the intersection id.
void setIntersectionLaneSet(List<GenericLane> intersectionLaneSet)
Sets the lanes of this intersection
void setLaneWidth(double laneWidth, LengthUnit laneWidthUnit)
Sets the width of the lane.
void setName(String name)
Sets the name of the intersection
void setRefPoint(Position3D refPoint)
Sets the reference point of this intersection
void setRevision(int revision)
Sets the revision
void setSpeedLimits(List<RegSpeedLimit> speedLimits)
Sets the list of speed limits.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Intersection ()

Creates a new instance.

Public Methods

public void clearLaneWidth ()

Clears the lane width value.

public boolean equals (Object o)

public GenericLane findLaneByNumber (long laneNumber)

Find a lane by lane number

Parameters
laneNumber lane number
Returns
  • the lane if found, null otherwise

public long getId ()

Returns the intersection id.

Returns
  • intersection id

public List<GenericLane> getIntersectionLaneSet ()

Returns the set of lanes of this intersection

Returns
  • lanes of this intersection

public Double getLaneWidth (LengthUnit unit)

Returns the width of the lane in the specified units.

Parameters
unit target unit
Returns
  • width of the lane in the specified units.

public String getName ()

Returns the name of the intersection

Returns
  • intersection name

public Position3D getRefPoint ()

Returns the reference point of this intersection

Returns
  • reference point

public int getRevision ()

Returns the revision.

Returns
  • revision

public List<RegSpeedLimit> getSpeedLimits ()

Returns the list of speed limits.

Returns
  • list of speed limits

public boolean hasLaneWidth ()

Returns true if the lane width is set.

Returns
  • true if the lane width is set, false otherwise

public int hashCode ()

public void setId (long id)

Sets the intersection id.

Parameters
id intersection id

public void setIntersectionLaneSet (List<GenericLane> intersectionLaneSet)

Sets the lanes of this intersection

Parameters
intersectionLaneSet lanes of this intersection

public void setLaneWidth (double laneWidth, LengthUnit laneWidthUnit)

Sets the width of the lane.

Parameters
laneWidth width of the lane
laneWidthUnit unit of lane width

public void setName (String name)

Sets the name of the intersection

Parameters
name intersection name

public void setRefPoint (Position3D refPoint)

Sets the reference point of this intersection

Parameters
refPoint reference point

public void setRevision (int revision)

Sets the revision

Parameters
revision revision

public void setSpeedLimits (List<RegSpeedLimit> speedLimits)

Sets the list of speed limits.

Parameters
speedLimits list of speed limits

public String toString ()