|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.globalse.arena.sword.hci.HMTConnector
HMTConnector.java
Class to connect HMT to the system.
The class is to be used as interface between java SWORD engine and C external head motion tracker driver. Executes as a thread.
Usage: create instance of the class, then run it. Make sure that C part of the driver is running before you instantiate this class. Else no tracker will be found. To terminate, call a terminateHmt() method of this class.
Author: TU-Muenchen. Lehrstuhl Softwaretechnik.
Implementation: Petr Ossipov
See also: Low Level C driver documentation.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
HMTConnector(boolean connect)
Constructor for HMT. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adding of Action Listener for HMT. |
protected boolean |
createControlConnection()
Opens control connection to the tracker. |
protected boolean |
createDataConnection()
opens data connection to the tracker. |
void |
removeActionListener(java.awt.event.ActionListener l)
Remove Action Listener from HMT. |
void |
run()
Starts the thread for actual running. |
protected void |
shutDownControlConnection()
Closes data connection to the tracker. |
protected void |
shutDownDataConnection()
Closes data connection to the tracker. |
void |
terminateHmt()
Terminates the head motion tracker driver, if present. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HMTConnector(boolean connect)
connect
- - if head motion tracker should be used - ignored actually. Automated detection is used.Method Detail |
public void addActionListener(java.awt.event.ActionListener l)
listener
- - object implementing ActionListenerpublic void removeActionListener(java.awt.event.ActionListener l)
listener
- - object implementing ActionListenerpublic void run()
public void terminateHmt()
protected boolean createDataConnection()
protected boolean createControlConnection()
protected void shutDownDataConnection()
protected void shutDownControlConnection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |