jAER project on SourceForge

net.sf.jaer.eventio
Interface AEUnicastSettings

All Known Implementing Classes:
AEUnicastInput, AEUnicastOutput

public interface AEUnicastSettings


Field Summary
static boolean ARC_TDS_4_BYTE_ADDR_AND_TIMESTAMPS
          ARC TDS smarteye uses 2 byte address and timestamp data
static boolean ARC_TDS_ADDRESS_BYTES_FIRST_ENABLED
          ARC TDS smarteye sends address bytes first
static boolean ARC_TDS_SEQUENCE_NUMBERS_ENABLED
          ARC TDS smarteye does not use sequence numbers
static int ARC_TDS_STREAM_PORT
          default port for streaming AE Events from ARC smarteye TDS sensor
static boolean ARC_TDS_SWAPBYTES_ENABLED
          ARC TDS smarteye swaps byte order since it comes from a non-intel system
static float ARC_TDS_TIMESTAMP_MULTIPLIER
          timestamp multiplier for ARC TDS smart eye sensor streaming data
static boolean DEFAULT_ADDRESS_FIRST
          Default address first (versus timestamp first) setting
static java.lang.String DEFAULT_HOST
           
static int DEFAULT_PORT
          Default jAER UDP port
static boolean DEFAULT_SWAPBYTES_ENABLED
          Default swapping of bytes
static float DEFAULT_TIMESTAMP_MULTIPLIER
          Default timestamp multiplier
static boolean DEFAULT_USE_4_BYTE_ADDR_AND_TIMESTAMP
          jAER by default uses 4 byte raw addresses and timestamps
static boolean DEFAULT_USE_SEQUENCE_NUMBER
          Default is to use sequence numbers as first int32 (4 bytes) of each packet
 
Method Summary
 java.lang.String getHost()
           
 int getPort()
           
 float getTimestampMultiplier()
           
 boolean is4ByteAddrTimestampEnabled()
           
 boolean isAddressFirstEnabled()
           
 boolean isSequenceNumberEnabled()
           
 boolean isSwapBytesEnabled()
           
 void set4ByteAddrTimestampEnabled(boolean yes)
          Sets whether to use 4 byte address and 4 byte timestamp or 2 byte address and 2 byte timestamp.
 void setAddressFirstEnabled(boolean addressFirstEnabled)
          If set true, the first int32 of each AE is the address, and the second is the timestamp.
 void setHost(java.lang.String host)
          You need to setHost to send unicast packets to a host.
 void setPort(int port)
           
 void setSequenceNumberEnabled(boolean sequenceNumberEnabled)
          If set true (default), then an int32 sequence number is the first word of the packet.
 void setSwapBytesEnabled(boolean yes)
          To handle big endian event sources/sinks (e.g.
 void setTimestampMultiplier(float timestampMultiplier)
          Sets the timestamp multiplier.
 

Field Detail

DEFAULT_ADDRESS_FIRST

static final boolean DEFAULT_ADDRESS_FIRST
Default address first (versus timestamp first) setting

See Also:
Constant Field Values

DEFAULT_USE_SEQUENCE_NUMBER

static final boolean DEFAULT_USE_SEQUENCE_NUMBER
Default is to use sequence numbers as first int32 (4 bytes) of each packet

See Also:
Constant Field Values

DEFAULT_USE_4_BYTE_ADDR_AND_TIMESTAMP

static final boolean DEFAULT_USE_4_BYTE_ADDR_AND_TIMESTAMP
jAER by default uses 4 byte raw addresses and timestamps

See Also:
Constant Field Values

DEFAULT_HOST

static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

static final int DEFAULT_PORT
Default jAER UDP port

See Also:
Constant Field Values

DEFAULT_SWAPBYTES_ENABLED

static final boolean DEFAULT_SWAPBYTES_ENABLED
Default swapping of bytes

See Also:
Constant Field Values

DEFAULT_TIMESTAMP_MULTIPLIER

static final float DEFAULT_TIMESTAMP_MULTIPLIER
Default timestamp multiplier

See Also:
Constant Field Values

ARC_TDS_STREAM_PORT

static final int ARC_TDS_STREAM_PORT
default port for streaming AE Events from ARC smarteye TDS sensor

See Also:
Constant Field Values

ARC_TDS_TIMESTAMP_MULTIPLIER

static final float ARC_TDS_TIMESTAMP_MULTIPLIER
timestamp multiplier for ARC TDS smart eye sensor streaming data

See Also:
Constant Field Values

ARC_TDS_SWAPBYTES_ENABLED

static final boolean ARC_TDS_SWAPBYTES_ENABLED
ARC TDS smarteye swaps byte order since it comes from a non-intel system

See Also:
Constant Field Values

ARC_TDS_SEQUENCE_NUMBERS_ENABLED

static final boolean ARC_TDS_SEQUENCE_NUMBERS_ENABLED
ARC TDS smarteye does not use sequence numbers

See Also:
Constant Field Values

ARC_TDS_ADDRESS_BYTES_FIRST_ENABLED

static final boolean ARC_TDS_ADDRESS_BYTES_FIRST_ENABLED
ARC TDS smarteye sends address bytes first

See Also:
Constant Field Values

ARC_TDS_4_BYTE_ADDR_AND_TIMESTAMPS

static final boolean ARC_TDS_4_BYTE_ADDR_AND_TIMESTAMPS
ARC TDS smarteye uses 2 byte address and timestamp data

See Also:
Constant Field Values
Method Detail

isSequenceNumberEnabled

boolean isSequenceNumberEnabled()

setSequenceNumberEnabled

void setSequenceNumberEnabled(boolean sequenceNumberEnabled)
If set true (default), then an int32 sequence number is the first word of the packet. Otherwise the first int32 is part of the first AE.

Parameters:
sequenceNumberEnabled - default true

isAddressFirstEnabled

boolean isAddressFirstEnabled()
See Also:
setAddressFirstEnabled(boolean)

setAddressFirstEnabled

void setAddressFirstEnabled(boolean addressFirstEnabled)
If set true, the first int32 of each AE is the address, and the second is the timestamp. If false, the first int32 is the timestamp, and the second is the address. This parameter is stored as a preference.

Parameters:
addressFirstEnabled - default true.

setHost

void setHost(java.lang.String host)
You need to setHost to send unicast packets to a host. Ignored for receiving events.

Parameters:
host - the hostname

getHost

java.lang.String getHost()

getPort

int getPort()

setPort

void setPort(int port)

setSwapBytesEnabled

void setSwapBytesEnabled(boolean yes)
To handle big endian event sources/sinks (e.g. intel code) the address and timestamp bytes can be swapped from big to little endian format


isSwapBytesEnabled

boolean isSwapBytesEnabled()

getTimestampMultiplier

float getTimestampMultiplier()
See Also:
setTimestampMultiplier(float)

setTimestampMultiplier

void setTimestampMultiplier(float timestampMultiplier)
Sets the timestamp multiplier. Timestamps in the incoming stream are multiplied by this value to generate the internal timestamps used in jAER, by default each 1 us. If the remote host uses timestamps of 1 ms, then set the multiplier to 1000 to turn each remote timestamp into 1000 us. Timestamps in outgoing streams are divided by the timestamp multiplier.

Parameters:
timestampMultiplier -

set4ByteAddrTimestampEnabled

void set4ByteAddrTimestampEnabled(boolean yes)
Sets whether to use 4 byte address and 4 byte timestamp or 2 byte address and 2 byte timestamp. Set true to use 4 bytes for each.

Parameters:
yes -

is4ByteAddrTimestampEnabled

boolean is4ByteAddrTimestampEnabled()

jAER project on SourceForge