public class

IntersectionState

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

Class Overview

Represents the state of an intersection.

Summary

Public Constructors
IntersectionState()
Creates a new instance.
Public Methods
boolean equals(Object o)
MovementState findMovementStateBySignalGroup(long signalGroupId)
Finds a movement state by signal group id
Long getId()
Returns the current intersection Id.
Long getLaneCount()
Returns the lane count of this intersection.
List<MovementState> getMovementStates()
Returns the movement states of this intersection.
long getRevision()
Gets the revision.
IntersectionStatus getStatus()
Gets intersection status.
Long getTimestamp()
Gets the timestamp when this intersection state was generated.
int hashCode()
void setId(Long id)
Sets the intersection Id.
void setLaneCount(Long laneCount)
Sets the lane count of this intersection.
void setMovementStates(List<MovementState> movementStates)
Sets the movement states of this intersection
void setRevision(long revision)
Sets the revision.
void setStatus(IntersectionStatus status)
Sets the intersection status.
void setTimestamp(Long timestamp)
Sets the timestamp when this intersection state was generated.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IntersectionState ()

Creates a new instance.

Public Methods

public boolean equals (Object o)

public MovementState findMovementStateBySignalGroup (long signalGroupId)

Finds a movement state by signal group id

Parameters
signalGroupId signal group id
Returns
  • a MovementState object if found, null otherwise

public Long getId ()

Returns the current intersection Id.

Returns
  • intersection Id

public Long getLaneCount ()

Returns the lane count of this intersection.

Returns
  • lane count

public List<MovementState> getMovementStates ()

Returns the movement states of this intersection.

Returns
  • list of movement states

public long getRevision ()

Gets the revision. Its increments on every update.

Returns
  • revision

public IntersectionStatus getStatus ()

Gets intersection status.

Returns
  • status

public Long getTimestamp ()

Gets the timestamp when this intersection state was generated.

Returns
  • timestamp

public int hashCode ()

public void setId (Long id)

Sets the intersection Id.

Parameters
id intersection Id

public void setLaneCount (Long laneCount)

Sets the lane count of this intersection.

Parameters
laneCount lane count

public void setMovementStates (List<MovementState> movementStates)

Sets the movement states of this intersection

Parameters
movementStates list of movement states

public void setRevision (long revision)

Sets the revision.

Parameters
revision revision

public void setStatus (IntersectionStatus status)

Sets the intersection status.

public void setTimestamp (Long timestamp)

Sets the timestamp when this intersection state was generated.

Parameters
timestamp timestamp

public String toString ()