Package networkTransfer.emulator
Class EmulatorStream
java.lang.Object
networkTransfer.emulator.EmulatorStream
Handles generation of a single buoy emulation.
- Author:
- Doug Gillespie
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionEmulatorStream
(NetworkEmulator networkEmulator, int buoyId, LatLong emLatLong) -
Method Summary
Modifier and TypeMethodDescriptionint
int
sendDataUnit
(PamDataBlock dataBlock, PamDataUnit dataUnit, long timeOffset) boolean
start()
void
stop()
-
Field Details
-
NET_SYSTEM_DATA
public static final int NET_SYSTEM_DATA- See Also:
-
COMPASSID
- See Also:
-
SYSTEM_GPSDATA
public static final int SYSTEM_GPSDATA- See Also:
-
SYSTEM_COMPASSDATA
public static final int SYSTEM_COMPASSDATA- See Also:
-
-
Constructor Details
-
EmulatorStream
- Parameters:
networkEmulator
-buoyId
-emLatLong
-
-
-
Method Details
-
getNetworkEmulator
- Returns:
- the networkEmulator
-
getBuoyId
public int getBuoyId()- Returns:
- the buoyId
-
getStatus
- Returns:
- the status
-
start
public boolean start() -
stop
public void stop() -
sendDataUnit
-