public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Modifier and Type | Class and Description |
---|---|
class |
Activator.Active
The main loop that create solutions.
|
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bc |
Constructor and Description |
---|
Activator() |
Modifier and Type | Method and Description |
---|---|
void |
changeColorSimulator(java.lang.String value)
Changes the color of the traffic light in the SCANeR simulator relative to the value
|
void |
changeQueryMode(int mode)
Change between the NORMAL mode that receive information from other bundles or
the TEST_QUERIES mode that read cases from file (set the path TEST_CASE_PATH in Config.java)
|
void |
clearQueryBuilder()
Reset all values in the QueryBuilder
|
void |
pauseThread()
Pauses the thread to make it possible for the user to add a new case
|
void |
retain(TrafficSituationCase newTrafficSituationCase)
Initiates the process of storing a new traffic situation case, based on the available traffic data.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
startThread() |
void |
stop(org.osgi.framework.BundleContext context) |
void |
stopThread() |
void |
unpauseThread() |
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public void changeQueryMode(int mode)
mode
- is one of the static values in the QueryBuilder (TEST_QUERIES or NORMAL)public void stopThread()
public void startThread()
public void retain(TrafficSituationCase newTrafficSituationCase)
newTrafficSituationCase
- public void changeColorSimulator(java.lang.String value)
value
- A value representing the color that the traffic light should be changed to (the traffic light controlling pedestrians)public void pauseThread()
public void unpauseThread()
public void clearQueryBuilder()
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception