public class CANReadThread extends java.lang.Thread implements IRcvEventProcessor
Constructor and Description |
---|
CANReadThread(PCANBasic pcanbasic,
java.util.Vector<ChannelItem> connectedChannelCollection,
java.util.HashMap dataRowCollection) |
Modifier and Type | Method and Description |
---|---|
void |
callAPIFunctionRead(TPCANHandle handle)
Calls the PCANBasic Read Function according the readTimeStamp parameter
|
void |
callAPIFunctionReadFd(TPCANHandle handle)
Calls the PCANBasic Read Function according the readTimeStamp parameter
|
java.lang.Boolean |
getReadTimeStamp() |
void |
processRcvEvent(TPCANHandle channel)
This method is called by the RcvEventDispatcher to process the CAN Receive-Event
by the current implementor
|
void |
run()
Starts thread process
|
void |
setReadTimeStamp(java.lang.Boolean useReadEx) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public CANReadThread(PCANBasic pcanbasic, java.util.Vector<ChannelItem> connectedChannelCollection, java.util.HashMap dataRowCollection)
pcanbasic
- PCANBasic instance used to call read functionsconnectedChannelCollection
- Reference to the collection which stores all connected channelsdataRowCollection
- Reference to the Collection which store readed CAN Messagespublic java.lang.Boolean getReadTimeStamp()
public void setReadTimeStamp(java.lang.Boolean useReadEx)
useReadEx
- states if timestamp must be used when reading CAN messagespublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void callAPIFunctionRead(TPCANHandle handle)
handle
- The handle of a PCAN Channelpublic void callAPIFunctionReadFd(TPCANHandle handle)
handle
- The handle of a PCAN Channelpublic void processRcvEvent(TPCANHandle channel)
IRcvEventProcessor
processRcvEvent
in interface IRcvEventProcessor