public class AppData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Thread |
batBackground
Variable that stores the instance of the thread for the battery monitoring
|
boolean |
batThread
Boolean that shows if the thread for monitoring-Battery is running.
|
java.lang.Thread |
gpsBackground
Variable that stores the instance of the thread for the gps monitoring
|
boolean |
gpsThread
Boolean that shows if the thread for monitoring-GPS is running.
|
private static AppData |
instance
The private instance of this singleton class.
|
java.util.Properties |
props
Properties object to load the program configurations.
|
java.lang.Thread |
sendBackground
Variable that stores the instance of the thread for sending data to the web-service
|
boolean |
sendThread
Boolean that shows if the thread for sending the
data to the web-service is running.
|
Modifier | Constructor and Description |
---|---|
private |
AppData()
Private constructor that initiates the values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
static AppData |
getInstance()
Creates the unique object of this class if not created.
|
private static AppData instance
public boolean gpsThread
public boolean batThread
public boolean sendThread
public java.lang.Thread gpsBackground
public java.lang.Thread batBackground
public java.lang.Thread sendBackground
public java.util.Properties props
public static AppData getInstance()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException