|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gtosoft.libvoyager.session.MonitorSession
public class MonitorSession
This class will communicate with the ELMBT layer to maintain a consistent BT and OBD state, while presenting new data to upper layers by way of a callback method.
Field Summary | |
---|---|
static int |
INTERFACE_STANDARD
|
static int |
INTERFACE_SWCAN
|
static int |
STATE_BTCONFIGURED
|
static int |
STATE_BTCONNECTED
|
static int |
STATE_OBDCONNECTED
|
static int |
STATE_SNIFFING
|
static int |
STATE_UNINITIALIZED
|
Constructor Summary | |
---|---|
MonitorSession(ELMBT elmbt,
int CANNetworkProtocol,
PIDDecoder p)
Constructor. |
Method Summary | |
---|---|
boolean |
_suspend()
Suspend operations by this class/session and return the network to a usable state for others. |
long |
getBufferFullsPerMinute()
|
int |
getCurrentState()
Returns the current state as an integer. |
GeneralStats |
getStats()
|
long |
getTimeInCurrentState()
|
boolean |
isIODoneTrying()
|
void |
monitorAll()
set the monitor mode to "monitor everything", no filters. |
void |
monitorReceiver(java.lang.String whichReceiver)
Monitor the bus for packets with receiver field set to this. |
void |
monitorTransmitter(java.lang.String whichTransmistter)
monitor the bus for packets with source node address equal to that specified. |
void |
registerMessageCallback(EventCallback eventCallback)
A means for a parent class to receive messages generated by this class. |
void |
registerMonitorStateChangeListener(EventCallback ecb)
|
boolean |
resume()
|
void |
setIOReconnectNOW()
Will kick the I/O Layer into trying to connect again. |
void |
setProto(int interfaceType)
Specifies the protocol of the connected device. |
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTERFACE_STANDARD
public static final int INTERFACE_SWCAN
public static final int STATE_UNINITIALIZED
public static final int STATE_BTCONNECTED
public static final int STATE_BTCONFIGURED
public static final int STATE_OBDCONNECTED
public static final int STATE_SNIFFING
Constructor Detail |
---|
public MonitorSession(ELMBT elmbt, int CANNetworkProtocol, PIDDecoder p)
elmbt
- - an instance of elmbt which has been initialized and ready for us to use.Method Detail |
---|
public void monitorAll()
public void monitorTransmitter(java.lang.String whichTransmistter)
whichTransmistter
- public void monitorReceiver(java.lang.String whichReceiver)
whichReceiver
- public void setProto(int interfaceType)
public int getCurrentState()
public void shutdown()
public void registerMessageCallback(EventCallback eventCallback)
eventCallback
- - override the newMessage() method.public void registerMonitorStateChangeListener(EventCallback ecb)
public long getTimeInCurrentState()
public long getBufferFullsPerMinute()
public boolean isIODoneTrying()
public void setIOReconnectNOW()
public GeneralStats getStats()
public boolean _suspend()
public boolean resume()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |