public class

EmergencyPriority

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

Class Overview

Represents the emergency priority of a CAM message.

Summary

Public Constructors
EmergencyPriority()
Creates a new instance.
Public Methods
boolean equals(Object o)
int hashCode()
boolean isRequestForFreeCrossingAtATrafficLight()
Returns true if this is a request for free crossing at a traffic light.
boolean isRequestForRightOfWay()
Returns true if this is a request for right of way.
void setRequestForFreeCrossingAtATrafficLight(boolean requestForFreeCrossingAtATrafficLight)
Sets whether this is a request for free crossing at a traffic light.
void setRequestForRightOfWay(boolean requestForRightOfWay)
Sets whether this is a request for right of way.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EmergencyPriority ()

Creates a new instance.

Public Methods

public boolean equals (Object o)

public int hashCode ()

public boolean isRequestForFreeCrossingAtATrafficLight ()

Returns true if this is a request for free crossing at a traffic light. This status can only be set by authorized vehicles e.g. rescue, police, ambulance etc.

Returns
  • true if this is a request for free crossing at a traffic light, false otherwise

public boolean isRequestForRightOfWay ()

Returns true if this is a request for right of way. This status can only be set by authorizes vehicles e.g. rescue, police, ambulance etc.

Returns
  • true if this is a request for right of way.

public void setRequestForFreeCrossingAtATrafficLight (boolean requestForFreeCrossingAtATrafficLight)

Sets whether this is a request for free crossing at a traffic light. This status can only be set by authorized vehicles e.g. rescue, police, ambulance etc.

Parameters
requestForFreeCrossingAtATrafficLight true if this is a request for free crossing at a traffic light, false otherwise

public void setRequestForRightOfWay (boolean requestForRightOfWay)

Sets whether this is a request for right of way. This status can only be set by authorizes vehicles e.g. rescue, police, ambulance etc.

Parameters
requestForRightOfWay true if this is a request for right of way

public String toString ()