public class TrafficEventHandler extends java.lang.Object implements org.osgi.service.event.EventHandler, java.awt.event.KeyListener, Query
Constructor and Description |
---|
TrafficEventHandler(CaseBuilder caseBuilder,
Activator activator) |
Modifier and Type | Method and Description |
---|---|
void |
addPausedTime(long timeMillis) |
void |
clear()
Reset all values back to standard
|
double |
getIntention() |
double |
getTimeWaited() |
TrafficSituationCase |
getTrafficQuery()
Use all data stored from the sensors and build a query case
|
void |
handleEvent(org.osgi.service.event.Event eve)
Events from other systems; the intention system (org/npra/ven/KINECT/) and SCANeR Studio (org/npra/ven/SCANeR)
|
void |
keyPressed(java.awt.event.KeyEvent e)
Key event listener that is binded to the GUI.
|
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
setIntention(double intention) |
public TrafficEventHandler(CaseBuilder caseBuilder, Activator activator)
public TrafficSituationCase getTrafficQuery()
getTrafficQuery
in interface Query
public void handleEvent(org.osgi.service.event.Event eve)
handleEvent
in interface org.osgi.service.event.EventHandler
public void setIntention(double intention)
public double getIntention()
public double getTimeWaited()
getTimeWaited
in interface Query
public void addPausedTime(long timeMillis)
addPausedTime
in interface Query
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener