Global Positioning System Reference
In-Depth Information
Part IV
ROApps: RealObject
Applications
The abstract RealObject serves as the programming shell to implement the
behavior of any physical object. A simulation of a physical object has to
adhere to classical physical laws. These laws have to implemented inside
the RealObject and can be validated by observing the object from the out-
side. Vehicle traces can be compared to digital maps as a well-defined
environment to make sure the trace is plausible.
In order to decouple the real-object development from its environment,
it has to be separated from the application logic. Objects and scenarios
should be developed independently of each other, bound only by real-world
constraints.
A real-object application or ROApp is a Java server application com-
posed of connected RealObject s, just as Java applications are composed of
various Object s. A RO can log on a ROApp to participate in the scenario
and interact with other ROs.
After the definition and (minimum) implementation of the ROApp ar-
chitecture, the RO and ROApp development will be put together into one
distributed application. The reader can launch a GUIPlayer to participate
in a game running on a separate Java Virtual Machine (on a different com-
puter). The programmer can implement additional players using dynamic
routing to play against other users.
 
 
 
Search WWH ::




Custom Search