Global Positioning System Reference
In-Depth Information
process, the developer should omit some of the implementation detail and
build a minimum implementation in order to build a higher-level appli-
cation, but implemented in such a way that vital missing details can be
added easily. In Part II, a mapping GUI was developed from inside the
roafx.gui.map
package. From here on the RO developer wants to focus
on the non-visual development, while using a
MapViewer
to monitor the
actual movements (see Figure 6.2). The
MapViewer
is a GUI similar to
the
GPXviewer
with slightly different design intentions. By using the static
method,
MapViewer gui = MapViewer.createAndShowGUI();
the viewer can be reduced to a member variable in another application.
MovingObjects
is the development environment for the ROs and even the
closing of the
MapViewer
should not affect other objects in the application.
For isolated map analysis, the
MapViewer
can always be launched with its
main method or as an executable
jar
.
In a team, the GUI developer can distribute a
MapViewer.jar
and the RO
developer can basically work against the
MapPanel
API and apply listeners
to talk to the environment, whenever the user interacts. The
controlPanel
can be retrieved to add application-specific controls (as we will soon see).
MovingObjects.
Please go through steps
*1*
through
*3*
in the quick
start instructions
2
../deployed/MovingObjects.txt
MovingObjects
is the first small real-world scenario, or real-object applica-
tion (ROApp) and provides
1. a GUI (variable) to observe
RealObject
s;
2. an environment with time and coordinate implementation;
3. a button to load traces, create objects (motorcycles);
4. a button to start a sampling process of the object's current positions.
The
RealObject
is only at the beginning of its evolution and was marked
abstract
right from the start and has to be extended for further develop-
ment. The
RealObject
was instantiated with the help of the
BuellXB12Ss
class.
Technically speaking, the application collects the object's
Position
in
an array to be visualized in
MapPanel.paintComponent
. While the
GPXviewer
2
Step
*4*
will be covered in Section 7.10, creating map tiles.
Search WWH ::
Custom Search