v2x-client
| java.lang.Object | |
| ↳ | com.commsignia.v2x.client.model.GeonetSendData.Builder |
Utility class for building GeonetSendData instances.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
GeonetSendData.Builder()
Create a new builder instance.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GeonetSendData.Builder |
asBTPA()
Send the packet as BTP type A.
| ||||||||||
| GeonetSendData.Builder |
asBTPB()
Send the packet as BTP type B.
| ||||||||||
| GeonetSendData.Builder |
asBTPNone()
Send the packet as BTP type None.
| ||||||||||
| GeonetSendData.Builder |
asBeacon()
Send the packet as a beacon.
| ||||||||||
| GeonetSendData.Builder |
asGAC()
Send the packet as geoanycast.
| ||||||||||
| GeonetSendData.Builder |
asGBC()
Send the packet as geobroadcast.
| ||||||||||
| GeonetSendData.Builder |
asGUC()
Send the packet as geounicast.
| ||||||||||
| GeonetSendData.Builder |
asSHB()
Send the packet as Single Hop Broadcast.
| ||||||||||
| GeonetSendData.Builder |
asTSB()
Send the packet as Topologically Scoped Broadcast.
| ||||||||||
| GeonetSendData |
build()
Construct a valid GeonetSendData object.
| ||||||||||
| GeonetSendData.Builder |
withData(byte[] data)
Sets the payload data.
| ||||||||||
| GeonetSendData.Builder |
withDatarateKbps(long datarateKbps)
Send the packet with the specified data rate in Kbps.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAddress(String destinationAddress)
Send the packet to the specified destination address.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaCircle(DestAreaCircle circle)
Send the packet with the specified destination area circle.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaCircle(long latitude, long longitude, double radius, LengthUnit radiusUnit)
Send the packet with the specified destination area circle.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaEllipse(long latitude, long longitude, double semiAxisA, LengthUnit semiAxisAUnit, double semiAxisB, LengthUnit semiAxisBUnit, double angle, DegreeUnit angleUnit)
Send the packet with the specified destination area ellipse.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaEllipse(DestAreaEllipse ellipse)
Send the packet with the specified destination area ellipse.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaRectangle(DestAreaRectangle rectangle)
Send the packet with the specified destination area rectangle.
| ||||||||||
| GeonetSendData.Builder |
withDestinationAreaRectangle(long latitude, long longitude, double semiAxisA, LengthUnit semiAxisAUnit, double semiAxisB, LengthUnit semiAxisBUnit, double angle, DegreeUnit angleUnit)
Send the packet with the specified destination area rectangle.
| ||||||||||
| GeonetSendData.Builder |
withDestinationPort(long destinationPort)
Send the packet with the specified destination port.
| ||||||||||
| GeonetSendData.Builder |
withInterfaceID(long interfaceID)
Send the packet using the specified interface ID.
| ||||||||||
| GeonetSendData.Builder |
withMaxHops(long maxHops)
Send the packet with the specified number of maximum hops.
| ||||||||||
| GeonetSendData.Builder |
withPacketLifetimeMsec(long packetLifetimeMsec)
Send the packet with the specified packet lifetime.
| ||||||||||
| GeonetSendData.Builder |
withSecurityInfo(GeonetSecurityInfo securityInfo)
Send the packet with the specified securty info structure.
| ||||||||||
| GeonetSendData.Builder |
withSecurityProfile(long securityProfile)
Send the packet with the specified security profile
| ||||||||||
| GeonetSendData.Builder |
withSourcePortOrDestinationInfo(long sourcePortOrDestinationInfo)
Send the packet with the specified source port when using BTP-A or destination info when using BTP-B.
| ||||||||||
| GeonetSendData.Builder |
withTrafficClass(boolean scfEnabled, boolean chOffload, long tcId)
Send the packet with the specified traffic class parameters.
| ||||||||||
| GeonetSendData.Builder |
withTxPowerDbm(long txPowerDbm)
Send the packet with the specified TX power value in dBm.
| ||||||||||
| GeonetSendData.Builder |
withUserPriority(long userPriority)
Send the packet with the specified user priority.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new builder instance.
Send the packet as BTP type A.
Send the packet as BTP type B.
Send the packet as BTP type None.
Send the packet as a beacon.
Send the packet as geoanycast.
Send the packet as geobroadcast.
Send the packet as geounicast.
Send the packet as Single Hop Broadcast.
Send the packet as Topologically Scoped Broadcast.
Construct a valid GeonetSendData object.
| IllegalStateException | when the specified parameters are incorrect |
|---|
Sets the payload data.
| data | payload data |
|---|
Send the packet with the specified data rate in Kbps.
| datarateKbps | data rate in Kbps |
|---|
Send the packet to the specified destination address.
| destinationAddress | destination address |
|---|
Send the packet with the specified destination area circle.
| circle | destination area circle |
|---|
Send the packet with the specified destination area circle.
| latitude | latitude in 0.1 microdegrees |
|---|---|
| longitude | longitude in 0.1 microdegrees |
| radius | radius in decimeters |
Send the packet with the specified destination area ellipse.
| latitude | latitude in 0.1 microdegrees |
|---|---|
| longitude | longitude in 0.1 microdegrees |
| semiAxisA | semi axis A value |
| semiAxisAUnit | semi axis A unit |
| semiAxisB | semi axis B value |
| semiAxisBUnit | semi axis B unit |
| angle | angle value |
| angleUnit | angle unit |
Send the packet with the specified destination area ellipse.
| ellipse | destination area ellipse |
|---|
Send the packet with the specified destination area rectangle.
| rectangle | destination area rectangle |
|---|
Send the packet with the specified destination area rectangle.
| latitude | latitude in 0.1 microdegrees |
|---|---|
| longitude | longitude in 0.1 microdegrees |
| semiAxisA | semi axis A value |
| semiAxisAUnit | semi axis A unit |
| semiAxisB | semi axis B value |
| semiAxisBUnit | semi axis B unit |
| angle | angle value |
| angleUnit | angle unit |
Send the packet with the specified destination port.
| destinationPort | destination port |
|---|
Send the packet using the specified interface ID.
| interfaceID | interface ID |
|---|
Send the packet with the specified number of maximum hops.
| maxHops | maximum hops |
|---|
Send the packet with the specified packet lifetime.
| packetLifetimeMsec | packet lifetime in milisecs |
|---|
Send the packet with the specified securty info structure.
| securityInfo | security info structure |
|---|
Send the packet with the specified security profile
| securityProfile | security profile |
|---|
Send the packet with the specified source port when using BTP-A or destination info when using BTP-B.
| sourcePortOrDestinationInfo | source port or destination info |
|---|
Send the packet with the specified traffic class parameters.
| scfEnabled | whether scf is enabled |
|---|---|
| chOffload | whether ch offload is enabled |
| tcId | traffic class id |
Send the packet with the specified TX power value in dBm.
| txPowerDbm | TX power value in dBm |
|---|
Send the packet with the specified user priority.
| userPriority | user priority |
|---|