public class

DangerousGoodsExtended

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

Class Overview

Provides information on the type of dangerous goods, the required emergency action and other information. Usually stored in the stationaryVehicle alacarte container if a vehicle carrying dangerous goods is involved in a stationary vehicle event.

Summary

Public Constructors
DangerousGoodsExtended()
Create a new Dangerous Goods container
Public Methods
boolean equals(Object o)
String getCompanyName()
Returns the name of the company that manages the transportation of dangerous goods.
DangerousGoodsBasicCategory getDangerousGoodsType()
Returns the dangerous goods type.
String getEmergencyActionCode()
Returns the emergency action code
String getPhoneNumber()
Returns the phone number
long getUnNumber()
Returns the identifier of the substance of the dangerous goods.
int hashCode()
boolean isElevatedTemperature()
Returns true if the carried dangerous goods are transported at high temperature.
boolean isLimitedQuantity()
Returns the value of the limited quantity flag
boolean isTunnelsRestricted()
Returns the tunnel restricted value
DangerousGoodsExtended setCompanyName(String companyName)
Set the name of company that manages the transportation of dangerous goods.
DangerousGoodsExtended setDangerousGoodsType(DangerousGoodsBasicCategory dangerousGoodsType)
Set the type of dangerous goods being carried by a Heavy Vehicle.
DangerousGoodsExtended setElevatedTemperature(boolean elevatedTemperature)
Set whether the carried dangerous goods are transported at high temperature.
DangerousGoodsExtended setEmergencyActionCode(String emergencyActionCode)
Set the physical signage placard at the vehicle that carries information on how an emergency service should deal with an incident.
DangerousGoodsExtended setLimitedQuantity(boolean limitedQuantity)
Set whether the carried dangerous goods are packed with limited quantity.
DangerousGoodsExtended setPhoneNumber(String phoneNumber)
Set a contact phone number of assistance service in case of incident or accident.
DangerousGoodsExtended setTunnelsRestricted(boolean tunnelsRestricted)
Set whether the Heavy Vehicle carrying dangerous goods is restricted to enter tunnels.
DangerousGoodsExtended setUnNumber(long unNumber)
Set a 4-digit number that identifies the substance of the dangerous goods.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DangerousGoodsExtended ()

Create a new Dangerous Goods container

Public Methods

public boolean equals (Object o)

public String getCompanyName ()

Returns the name of the company that manages the transportation of dangerous goods.

Returns
  • the name of the company

public DangerousGoodsBasicCategory getDangerousGoodsType ()

Returns the dangerous goods type. The value is assigned according to "class" and "division" definitions of dangerous goods.

Returns
  • the dangerous goods type based on the basic categories

public String getEmergencyActionCode ()

Returns the emergency action code

Returns
  • the emergency action code

public String getPhoneNumber ()

Returns the phone number

Returns
  • contact phone number of assistance service in case of incident or accident

public long getUnNumber ()

Returns the identifier of the substance of the dangerous goods.

Returns
  • a 4-digit number that identifies the substance of the dangerous goods

public int hashCode ()

public boolean isElevatedTemperature ()

Returns true if the carried dangerous goods are transported at high temperature.

Returns
  • true if the temperature is elevated

public boolean isLimitedQuantity ()

Returns the value of the limited quantity flag

Returns
  • whether the carried dangerous goods are packed with limited quantity

public boolean isTunnelsRestricted ()

Returns the tunnel restricted value

Returns
  • whether the Heavy Vehicle carrying dangerous goods is restricted to enter tunnels

public DangerousGoodsExtended setCompanyName (String companyName)

Set the name of company that manages the transportation of dangerous goods.

Parameters
companyName name of the company
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setDangerousGoodsType (DangerousGoodsBasicCategory dangerousGoodsType)

Set the type of dangerous goods being carried by a Heavy Vehicle. The value is assigned according to "class" and "division" definitions of dangerous goods.

Parameters
dangerousGoodsType dangerous goods type based on tthe basic categories
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setElevatedTemperature (boolean elevatedTemperature)

Set whether the carried dangerous goods are transported at high temperature.

Parameters
elevatedTemperature true if transported at elevated temperature, false otherwise
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setEmergencyActionCode (String emergencyActionCode)

Set the physical signage placard at the vehicle that carries information on how an emergency service should deal with an incident.

Parameters
emergencyActionCode emergency action code
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setLimitedQuantity (boolean limitedQuantity)

Set whether the carried dangerous goods are packed with limited quantity.

Parameters
limitedQuantity whether the carried dangerous goods are packed with limited quantity
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setPhoneNumber (String phoneNumber)

Set a contact phone number of assistance service in case of incident or accident.

Parameters
phoneNumber phone number
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setTunnelsRestricted (boolean tunnelsRestricted)

Set whether the Heavy Vehicle carrying dangerous goods is restricted to enter tunnels.

Parameters
tunnelsRestricted true if restricted to enter tunnels, false otherwise
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public DangerousGoodsExtended setUnNumber (long unNumber)

Set a 4-digit number that identifies the substance of the dangerous goods.

Parameters
unNumber identifier of the substance of dangerous goods (Range: 0..9999)
Returns
  • the same DangerousGoodsExtended object this method was invoked on

public String toString ()