public final class

PrimaryCause

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.PrimaryCause<S extends com.commsignia.v2x.client.model.BaseSubCauseCode>

Class Overview

Cause code values for detected events.

Summary

Fields
public static final PrimaryCause<AccidentSubCauseCode> ACCIDENT Constant for accident
public static final PrimaryCause<AdverseWeatherConditionAdhesionSubCauseCode> ADVERSE_WEATHER_CONDITION_ADHESION Constant for adverse weather condition adhesion
public static final PrimaryCause<AdverseWeatherConditionExtremeWeatherConditionSubCauseCode> ADVERSE_WEATHER_CONDITION_EXTREME_WEATHER_CONDITION Constant for adverse weather condition extreme weather condition
public static final PrimaryCause<AdverseWeatherConditionPrecipitationSubCauseCode> ADVERSE_WEATHER_CONDITION_PRECIPITATION Constant for adverse weather condition precipitation
public static final PrimaryCause<AdverseWeatherConditionVisibilitySubCauseCode> ADVERSE_WEATHER_CONDITION_VISIBILITY Constant for adverse weather condition visibility
public static final PrimaryCause<CollisionRiskSubCauseCode> COLLISION_RISK Constant for collision risk
public static final PrimaryCause<DangerousEndOfQueueSubCauseCode> DANGEROUS_END_OF_QUEUE Constant for dangerous end of queue
public static final PrimaryCause<DangerousSituationSubCauseCode> DANGEROUS_SITUATION Constant for dangerous situation
public static final PrimaryCause<EmergencyVehicleApproachingSubCauseCode> EMERGENCY_VEHICLE_APPROACHING Constant for emergency vehicle approaching
public static final PrimaryCause<HazardousLocationAnimalOnTheRoadSubCauseCode> HAZARDOUS_LOCATION_ANIMAL_ON_THE_ROAD Constant for hazardous location animal on the road
public static final PrimaryCause<HazardousLocationDangerousCurveSubCauseCode> HAZARDOUS_LOCATION_DANGEROUS_CURVE Constant for hazardous location dangerous curve
public static final PrimaryCause<HazardousLocationObstacleOnTheRoadSubCauseCode> HAZARDOUS_LOCATION_OBSTACLE_ON_THE_ROAD Constant for hazardous location obstacle on the road
public static final PrimaryCause<HazardousLocationSurfaceConditionSubCauseCode> HAZARDOUS_LOCATION_SURFACE_CONDITION Constant for hazardous location surface condition
public static final PrimaryCause<HumanPresenceOnTheRoadSubCauseCode> HUMAN_PRESENCE_ON_THE_ROAD Constant for human presence on the road
public static final PrimaryCause<HumanProblemSubCauseCode> HUMAN_PROBLEM Constant for human problem
public static final PrimaryCause<PostCrashSubCauseCode> POST_CRASH Constant for post crash
public static final PrimaryCause<RescueAndRecoveryWorkInProgressSubCauseCode> RESCUE_AND_RECOVERY_WORK_IN_PROGRESS Constant for rescue and recovery work in progress
public static final PrimaryCause RESERVED Constant for reserved
public static final PrimaryCause<RoadworksSubCauseCode> ROADWORKS Constant for roadworks
public static final PrimaryCause<SignalViolationSubCauseCode> SIGNAL_VIOLATION Constant for signal violation
public static final PrimaryCause<SlowVehicleSubCauseCode> SLOW_VEHICLE Constant for slow vehicle
public static final PrimaryCause<StationaryVehicleSubCauseCode> STATIONARY_VEHICLE Constant for stationary vehicle
public static final PrimaryCause<TrafficConditionSubCauseCode> TRAFFIC_CONDITION Constant for traffic condition
public static final PrimaryCause<VehicleBreakdownSubCauseCode> VEHICLE_BREAKDOWN Constant for vehicle breakdown
public static final PrimaryCause<WrongWayDrivingSubCauseCode> WRONG_WAY_DRIVING Constant for wrong way driving
Public Methods
boolean equals(Object o)
int getCustomCauseCode()
Returns the custom cause code for this primary cause.
String getName()
Returns the name of this primary cause.
int hashCode()
boolean isCustomPrimaryCause()
Returns true if this primary cause object contains a custom cause code.
static PrimaryCause of(int customCauseCode)
Creates a primary cause with the specified custom cause code.
String toString()
CauseCode withSubCause(int subCauseCode)
Create a cause code instance with the selected primary cause and the specified custom sub cause code
CauseCode withSubCause(S subCause)
Create a cause code instance with the selected primary cause and the specified sub cause
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final PrimaryCause<AccidentSubCauseCode> ACCIDENT

Constant for accident

public static final PrimaryCause<AdverseWeatherConditionAdhesionSubCauseCode> ADVERSE_WEATHER_CONDITION_ADHESION

Constant for adverse weather condition adhesion

public static final PrimaryCause<AdverseWeatherConditionExtremeWeatherConditionSubCauseCode> ADVERSE_WEATHER_CONDITION_EXTREME_WEATHER_CONDITION

Constant for adverse weather condition extreme weather condition

public static final PrimaryCause<AdverseWeatherConditionPrecipitationSubCauseCode> ADVERSE_WEATHER_CONDITION_PRECIPITATION

Constant for adverse weather condition precipitation

public static final PrimaryCause<AdverseWeatherConditionVisibilitySubCauseCode> ADVERSE_WEATHER_CONDITION_VISIBILITY

Constant for adverse weather condition visibility

public static final PrimaryCause<CollisionRiskSubCauseCode> COLLISION_RISK

Constant for collision risk

public static final PrimaryCause<DangerousEndOfQueueSubCauseCode> DANGEROUS_END_OF_QUEUE

Constant for dangerous end of queue

public static final PrimaryCause<DangerousSituationSubCauseCode> DANGEROUS_SITUATION

Constant for dangerous situation

public static final PrimaryCause<EmergencyVehicleApproachingSubCauseCode> EMERGENCY_VEHICLE_APPROACHING

Constant for emergency vehicle approaching

public static final PrimaryCause<HazardousLocationAnimalOnTheRoadSubCauseCode> HAZARDOUS_LOCATION_ANIMAL_ON_THE_ROAD

Constant for hazardous location animal on the road

public static final PrimaryCause<HazardousLocationDangerousCurveSubCauseCode> HAZARDOUS_LOCATION_DANGEROUS_CURVE

Constant for hazardous location dangerous curve

public static final PrimaryCause<HazardousLocationObstacleOnTheRoadSubCauseCode> HAZARDOUS_LOCATION_OBSTACLE_ON_THE_ROAD

Constant for hazardous location obstacle on the road

public static final PrimaryCause<HazardousLocationSurfaceConditionSubCauseCode> HAZARDOUS_LOCATION_SURFACE_CONDITION

Constant for hazardous location surface condition

public static final PrimaryCause<HumanPresenceOnTheRoadSubCauseCode> HUMAN_PRESENCE_ON_THE_ROAD

Constant for human presence on the road

public static final PrimaryCause<HumanProblemSubCauseCode> HUMAN_PROBLEM

Constant for human problem

public static final PrimaryCause<PostCrashSubCauseCode> POST_CRASH

Constant for post crash

public static final PrimaryCause<RescueAndRecoveryWorkInProgressSubCauseCode> RESCUE_AND_RECOVERY_WORK_IN_PROGRESS

Constant for rescue and recovery work in progress

public static final PrimaryCause RESERVED

Constant for reserved

public static final PrimaryCause<RoadworksSubCauseCode> ROADWORKS

Constant for roadworks

public static final PrimaryCause<SignalViolationSubCauseCode> SIGNAL_VIOLATION

Constant for signal violation

public static final PrimaryCause<SlowVehicleSubCauseCode> SLOW_VEHICLE

Constant for slow vehicle

public static final PrimaryCause<StationaryVehicleSubCauseCode> STATIONARY_VEHICLE

Constant for stationary vehicle

public static final PrimaryCause<TrafficConditionSubCauseCode> TRAFFIC_CONDITION

Constant for traffic condition

public static final PrimaryCause<VehicleBreakdownSubCauseCode> VEHICLE_BREAKDOWN

Constant for vehicle breakdown

public static final PrimaryCause<WrongWayDrivingSubCauseCode> WRONG_WAY_DRIVING

Constant for wrong way driving

Public Methods

public boolean equals (Object o)

public int getCustomCauseCode ()

Returns the custom cause code for this primary cause.

Returns
  • custom cause code

public String getName ()

Returns the name of this primary cause.

Returns
  • name of the primary cause

public int hashCode ()

public boolean isCustomPrimaryCause ()

Returns true if this primary cause object contains a custom cause code.

Returns
  • true if this primary cause object contains a custom cause code.

public static PrimaryCause of (int customCauseCode)

Creates a primary cause with the specified custom cause code.

Parameters
customCauseCode custom cause code
Returns
  • primary cause instance

public String toString ()

public CauseCode withSubCause (int subCauseCode)

Create a cause code instance with the selected primary cause and the specified custom sub cause code

Parameters
subCauseCode custom sub cause code
Returns
  • cause code instance

public CauseCode withSubCause (S subCause)

Create a cause code instance with the selected primary cause and the specified sub cause

Parameters
subCause sub cause
Returns
  • cause code instance