nl.tbdev.IR
Class Options

java.lang.Object
  |
  +--nl.tbdev.IR.Options

class Options
extends java.lang.Object

Basic IR Options


Field Summary
static byte B115200
           
static byte B19200
           
static byte B2400
           
static byte B38400
           
static byte B57600
           
static byte B9600
           
private  byte baud
           
static byte BOF0
           
static byte BOF1
           
static byte BOF12
           
static byte BOF2
           
static byte BOF24
           
static byte BOF3
           
static byte BOF48
           
static byte BOF5
           
private  byte bofs
           
private  byte dataSize
           
static byte DS1024
           
static byte DS128
           
static byte DS2048
           
static byte DS256
           
static byte DS512
           
static byte DS64
           
static byte ITA0
           
static byte ITA1
           
static byte ITA10
           
static byte ITA100
           
static byte ITA1000
           
static byte ITA5
           
static byte ITA50
           
static byte ITA500
           
static byte LD12
           
static byte LD16
           
static byte LD20
           
static byte LD25
           
static byte LD3
           
static byte LD30
           
static byte LD40
           
static byte LD8
           
private  byte linkDis
           
private  byte maxTurn
           
private  byte minTurn
           
static byte MTA100
           
static byte MTA250
           
static byte MTA50
           
static byte MTA500
           
static byte PI_ADDBOF
           
static byte PI_BAUD
           
static byte PI_DATASIZE
           
static byte PI_LINKDIS
           
static byte PI_MAXTURN
           
static byte PI_MINTURN
           
static byte PI_WINSIZE
           
private  byte winSize
           
static byte WS1
           
static byte WS2
           
static byte WS3
           
static byte WS4
           
static byte WS5
           
static byte WS6
           
static byte WS7
           
 
Constructor Summary
Options()
          create Options instance set to our capabilities
 
Method Summary
 byte getBaud()
          get baudrate
 int getBaudValue()
          Get negotiated speed for this connection
 byte getBofs()
          get bofs
 int getBofValue()
          get value of BOF parameter for this connection
 byte getDataSize()
          get data size
 int getDataSizeValue()
          get the size of the acceptable packets
 byte getLinkDis()
          get link disconnect time
 int getLinkDiscValue()
          Get negotiated disconnect time for this connection
 int getLinkWarnValue()
          Get negotiated warning time for this connection
 byte getMaxTurn()
          get maximum turn around time
 byte getMinTurn()
          get minimal turn around time
 byte getWinSize()
          get window size
 void matchOptions(Options remOptions)
          Match options and adapt this object with negotiated parameters
 void saveOptions(byte[] frame, int start, int end)
          get options from frame starting at start stopping before last
 void setDefault()
          set object to default values for JIR
 java.lang.String stringOptions(byte[] frame, int start, int end)
          Translate the options in a frame into readable text
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

B2400

public static final byte B2400

B9600

public static final byte B9600

B19200

public static final byte B19200

B38400

public static final byte B38400

B57600

public static final byte B57600

B115200

public static final byte B115200

MTA500

public static final byte MTA500

MTA250

public static final byte MTA250

MTA100

public static final byte MTA100

MTA50

public static final byte MTA50

DS64

public static final byte DS64

DS128

public static final byte DS128

DS256

public static final byte DS256

DS512

public static final byte DS512

DS1024

public static final byte DS1024

DS2048

public static final byte DS2048

WS1

public static final byte WS1

WS2

public static final byte WS2

WS3

public static final byte WS3

WS4

public static final byte WS4

WS5

public static final byte WS5

WS6

public static final byte WS6

WS7

public static final byte WS7

BOF48

public static final byte BOF48

BOF24

public static final byte BOF24

BOF12

public static final byte BOF12

BOF5

public static final byte BOF5

BOF3

public static final byte BOF3

BOF2

public static final byte BOF2

BOF1

public static final byte BOF1

BOF0

public static final byte BOF0

ITA1000

public static final byte ITA1000

ITA500

public static final byte ITA500

ITA100

public static final byte ITA100

ITA50

public static final byte ITA50

ITA10

public static final byte ITA10

ITA5

public static final byte ITA5

ITA1

public static final byte ITA1

ITA0

public static final byte ITA0

LD3

public static final byte LD3

LD8

public static final byte LD8

LD12

public static final byte LD12

LD16

public static final byte LD16

LD20

public static final byte LD20

LD25

public static final byte LD25

LD30

public static final byte LD30

LD40

public static final byte LD40

PI_BAUD

public static final byte PI_BAUD

PI_MAXTURN

public static final byte PI_MAXTURN

PI_DATASIZE

public static final byte PI_DATASIZE

PI_WINSIZE

public static final byte PI_WINSIZE

PI_ADDBOF

public static final byte PI_ADDBOF

PI_MINTURN

public static final byte PI_MINTURN

PI_LINKDIS

public static final byte PI_LINKDIS

baud

private byte baud

maxTurn

private byte maxTurn

dataSize

private byte dataSize

winSize

private byte winSize

bofs

private byte bofs

minTurn

private byte minTurn

linkDis

private byte linkDis
Constructor Detail

Options

public Options()
create Options instance set to our capabilities
Method Detail

saveOptions

public void saveOptions(byte[] frame,
                        int start,
                        int end)
get options from frame starting at start stopping before last
Parameters:
frame - array of bytes with IR frame in it
start - first byte to be processed
end - stop before this offset

setDefault

public void setDefault()
set object to default values for JIR

matchOptions

public void matchOptions(Options remOptions)
Match options and adapt this object with negotiated parameters
Parameters:
remOptions - Options object with remote parameters

getBaud

public byte getBaud()
get baudrate
Returns:
baudrate mask

getMaxTurn

public byte getMaxTurn()
get maximum turn around time
Returns:
max turn around mask

getDataSize

public byte getDataSize()
get data size
Returns:
data size mask

getWinSize

public byte getWinSize()
get window size
Returns:
window size mask

getBofs

public byte getBofs()
get bofs
Returns:
bof mask

getMinTurn

public byte getMinTurn()
get minimal turn around time
Returns:
min turn around mask

getLinkDis

public byte getLinkDis()
get link disconnect time
Returns:
disconnect mask

getLinkDiscValue

public int getLinkDiscValue()
Get negotiated disconnect time for this connection
Returns:
disconnect time in seconds

getLinkWarnValue

public int getLinkWarnValue()
Get negotiated warning time for this connection
Returns:
warning time in seconds

getBaudValue

public int getBaudValue()
Get negotiated speed for this connection
Returns:
baudrate

getBofValue

public int getBofValue()
get value of BOF parameter for this connection
Returns:
number of BOFs needed at the negotiated speed

getDataSizeValue

public int getDataSizeValue()
get the size of the acceptable packets
Returns:
size in bytes

stringOptions

public java.lang.String stringOptions(byte[] frame,
                                      int start,
                                      int end)
Translate the options in a frame into readable text
Returns:
stringified version of the options