public class

EnergyStorageType

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

Class Overview

Represents the energy storage type in a CAM message.

Summary

Public Constructors
EnergyStorageType(boolean hydrogenStorage, boolean electricEnergyStorage, boolean liquidPropaneGas, boolean compressedNaturalGas, boolean diesel, boolean gasoline, boolean ammonia)
Creates a new instace.
EnergyStorageType()
Creates a new instance.
Public Methods
boolean equals(Object o)
int hashCode()
boolean isAmmonia()
Returns whether the vehicle has ammonia tank.
boolean isCompressedNaturalGas()
Returns whether the vehicle has compressed natural gas tank.
boolean isDiesel()
Returns whether the vehicle has diesel tank.
boolean isElectricEnergyStorage()
Returns whether the vehicle has electric energy storage.
boolean isGasoline()
Returns whether the vehicle has gasoline tank.
boolean isHydrogenStorage()
Returns information whether the vehicle has hydrogen storage.
boolean isLiquidPropaneGas()
Returns whether the vehicle has liquid propane gas tank.
EnergyStorageType setAmmonia(boolean ammonia)
Sets whether the vehicle has ammonia tank.
EnergyStorageType setCompressedNaturalGas(boolean compressedNaturalGas)
Sets whether the vehicle has compressed natural gas tank.
EnergyStorageType setDiesel(boolean diesel)
Sets whether the vehicle has diesel tank.
EnergyStorageType setElectricEnergyStorage(boolean electricEnergyStorage)
Sets whether the vehicle has electric energy storage.
EnergyStorageType setGasoline(boolean gasoline)
Returns whether the vehicle has gasoline tank.
EnergyStorageType setHydrogenStorage(boolean hydrogenStorage)
Sets whether the vehicle has hydrogen storage.
EnergyStorageType setLiquidPropaneGas(boolean liquidPropaneGas)
Sets whether the vehicle has liquid propane gas tank.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EnergyStorageType (boolean hydrogenStorage, boolean electricEnergyStorage, boolean liquidPropaneGas, boolean compressedNaturalGas, boolean diesel, boolean gasoline, boolean ammonia)

Creates a new instace.

Parameters
hydrogenStorage true if the vehicle has hydrogen storage
electricEnergyStorage true if the vehicle has electric energy storage
liquidPropaneGas true if the vehicle has liquid propane gas storage
compressedNaturalGas true if the vehicle has compressed natural gas storage
diesel true if the vehicle has a diesel tank
gasoline true if the vehicle has a gasoline tank
ammonia true if the vehicle has a ammonia tank

public EnergyStorageType ()

Creates a new instance.

Public Methods

public boolean equals (Object o)

public int hashCode ()

public boolean isAmmonia ()

Returns whether the vehicle has ammonia tank.

Returns
  • true if the vehicle has ammonia tank.

public boolean isCompressedNaturalGas ()

Returns whether the vehicle has compressed natural gas tank.

Returns
  • true if the vehicle has compressed natural gas tank.

public boolean isDiesel ()

Returns whether the vehicle has diesel tank.

Returns
  • true if the vehicle has diesel tank.

public boolean isElectricEnergyStorage ()

Returns whether the vehicle has electric energy storage.

Returns
  • true if the vehicle has electric energy storage

public boolean isGasoline ()

Returns whether the vehicle has gasoline tank.

Returns
  • true if the vehicle has gasoline tank.

public boolean isHydrogenStorage ()

Returns information whether the vehicle has hydrogen storage.

Returns
  • true if the vehicle has hydrogen storage

public boolean isLiquidPropaneGas ()

Returns whether the vehicle has liquid propane gas tank.

Returns
  • true if the vehicle has liquid propane gas container

public EnergyStorageType setAmmonia (boolean ammonia)

Sets whether the vehicle has ammonia tank.

Parameters
ammonia true if the vehicle has ammonia tank.
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setCompressedNaturalGas (boolean compressedNaturalGas)

Sets whether the vehicle has compressed natural gas tank.

Parameters
compressedNaturalGas true if the vehicle has compressed natural gas tank.
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setDiesel (boolean diesel)

Sets whether the vehicle has diesel tank.

Parameters
diesel true if the vehicle has diesel tank.
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setElectricEnergyStorage (boolean electricEnergyStorage)

Sets whether the vehicle has electric energy storage.

Parameters
electricEnergyStorage true if the vehicle has electric energy storage
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setGasoline (boolean gasoline)

Returns whether the vehicle has gasoline tank.

Parameters
gasoline true if the vehicle has gasoline tank.
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setHydrogenStorage (boolean hydrogenStorage)

Sets whether the vehicle has hydrogen storage.

Parameters
hydrogenStorage true if the vehicle has hydrogen storage
Returns
  • the same EnergyStorageType object this method was invoked on

public EnergyStorageType setLiquidPropaneGas (boolean liquidPropaneGas)

Sets whether the vehicle has liquid propane gas tank.

Parameters
liquidPropaneGas true if the vehicle has liquid propane gas container
Returns
  • the same EnergyStorageType object this method was invoked on

public String toString ()