public class ThoraxPacketGenerator extends java.lang.Object implements PacketGenerator
| Constructor and Description |
|---|
ThoraxPacketGenerator(java.lang.String dataFilename)
Creates a new thorax packet generator which will use data from the
provided file to generate packets.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generatePacket(int packetSize)
The packet returned will contain the next double value from the provided
thorax data file, as bytes.
|
public ThoraxPacketGenerator(java.lang.String dataFilename)
public byte[] generatePacket(int packetSize)
generatePacket in interface PacketGeneratorpacketSize - the size of desired packet, in bytes