The roaf.ros.RealObject class
This Tutorial Trail refers to Chapters 6 and 10 of the Book.
The implementations described in this trail can be found in the roaf.book.ro package.
The RealObject (RO) is the root class of any real-world object to represent any physical thing known from the real world. The roaf.ros.RealObject class is preimplemented to provide
- a location and speed relative to the external coordinate system at any time and
- a mass and a body (size or shape) claiming space at its location
- connectivity to authenticate on a server to enter and interact in the scenario
In Java, everything is built on top of the Object class to manage the communication of the Java program with the external platform and network via JVM. Technically, an extended RealObject is an independent program and can be run independently on its own JVM (and CPU) before (or without) entering a real world scenario. The implementation also provides methods to authenticate itself towards the ROApp, enter and communicate with the server application. In the computer world, every (real) object is a program of its own, an entity with an internal behavior and interfaces connecting it to external environments.
The general ROAF development is driven by the real-world aspect and (on a long term) a RO hierarchy should classify real physical objects. Things can be grouped together according to common characteristics and separated from things with differing characteristics. The classification should be based on existing scientific organization. The objects in the hierarchy have to be precise to spare developers from coding general knowledge. For example an initial implementation of a car to follow a road network can form the base class for a more specialized car, like a racing car on a racing track.
|Java API||GPS tracing »|