Package gaiasky.util
Class LocationLogManager
java.lang.Object
gaiasky.util.LocationLogManager
- All Implemented Interfaces:
IObserver
public class LocationLogManager extends java.lang.Object implements IObserver
This guy is in charge of logging the visited locations and serving
them to the corresponding subsystems.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocationLogManager.LocationRecord
A single location -
Field Summary
Fields Modifier and Type Field Description protected static Logger.Log
logger
-
Constructor Summary
Constructors Constructor Description LocationLogManager()
-
Method Summary
Modifier and Type Method Description void
addRecord(IFocus object, ICamera camera, ITimeFrameProvider time)
Adds a new record with the given object, camera and timevoid
clearLocations()
java.util.LinkedList<LocationLogManager.LocationRecord>
getLocations()
static void
initialize()
static LocationLogManager
instance()
void
notify(Events event, java.lang.Object... data)
void
startCapturing()
void
stopCapturing()
Stops capturing locations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
logger
-
-
Constructor Details
-
LocationLogManager
public LocationLogManager()
-
-
Method Details
-
instance
-
initialize
public static void initialize() -
getLocations
-
clearLocations
public void clearLocations() -
startCapturing
public void startCapturing() -
stopCapturing
public void stopCapturing()Stops capturing locations. -
addRecord
Adds a new record with the given object, camera and time -
notify
-