www.rkjava.de

de.rkjava.serial.j3964r
Class J3964REvent

java.lang.Object
  extended byjava.util.EventObject
      extended byde.rkjava.serial.j3964r.J3964REvent
All Implemented Interfaces:
Serializable

public class J3964REvent
extends EventObject

An object of this class will be transfered to a J3964RListener by calling his methods J3964RListener.dataReceived(J3964REvent) or J3964RListener.dataSend(J3964REvent)

Author:
Gerd Limbeck, www.rkjava.de
See Also:
Serialized Form

Field Summary
static int AFTER_STX_NO_DLE
          After STX no DLE
static int AFTER_STX_NO_DLE_WITHIN_QVZ
          After STX no DLE within QVZ
static int CANCEL_AFTER_SIX_TRIES
          Only used, if (STXafterNAK == true)
static int CANCEL_AFTER_TREE_TRIES
          -3
static int NO_ERROR
          0
 
Constructor Summary
J3964REvent(Object source, Byte[] byteObjects)
          Creates new J3964REvent
J3964REvent(Object source, int errorNo)
          Creates new J3964REvent
 
Method Summary
 Byte[] getBytes()
          The data as a byte-array
 int getErrorNo()
          Gives the NO_ERROR, if no error
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ERROR

public static final int NO_ERROR
0

See Also:
Constant Field Values

AFTER_STX_NO_DLE

public static final int AFTER_STX_NO_DLE
After STX no DLE

See Also:
J3964R.STX, J3964R.DLE, Constant Field Values

AFTER_STX_NO_DLE_WITHIN_QVZ

public static final int AFTER_STX_NO_DLE_WITHIN_QVZ
After STX no DLE within QVZ

See Also:
J3964R.STX, J3964R.DLE, J3964R.QVZ, Constant Field Values

CANCEL_AFTER_SIX_TRIES

public static final int CANCEL_AFTER_SIX_TRIES
Only used, if (STXafterNAK == true)

See Also:
J3964R.STXafterNAK, Constant Field Values

CANCEL_AFTER_TREE_TRIES

public static final int CANCEL_AFTER_TREE_TRIES
-3

See Also:
Constant Field Values
Constructor Detail

J3964REvent

public J3964REvent(Object source,
                   Byte[] byteObjects)
Creates new J3964REvent

Parameters:
source - the sourceobject
byteObjects - the bytes

J3964REvent

public J3964REvent(Object source,
                   int errorNo)
Creates new J3964REvent

Parameters:
source - the sourceobject
errorNo - the errorNo
Method Detail

getBytes

public Byte[] getBytes()
The data as a byte-array

Returns:
the received data
Possible null!

getErrorNo

public int getErrorNo()
Gives the NO_ERROR, if no error

Returns:
a errorNo
See Also:
NO_ERROR, AFTER_STX_NO_DLE, AFTER_STX_NO_DLE_WITHIN_QVZ, CANCEL_AFTER_SIX_TRIES, CANCEL_AFTER_TREE_TRIES

www.rkjava.de