The name is absent



CHAPTER 4. CODING PROCESS

11


4.2 Reverse engineering

When new features have to be implemented into an existing project, program-
mers need to understand the design of the project and how the relevant pieces of
code work. This can be a very intensive work and tools which search for declara-
tions, type hierarchies and call hierarchies are very useful in this process. Eclipse
supports these features and those were very useful to learn the project’s imple-
mentation.

Also the communication with Gaston Escobar has helped in understanding the
code. I have mailed and chatted with him, asking questions about the code. The
Green Light District project was provided with some UML diagrams which gave
better insight in the global design of the project.

The most relevant parts of the code which were needed for implementing the extra
features are discussed below.

4.2.1 Speed of roadusers and its representation on a drivelane

The speed is represented as a number of blocks moved per cycle. In every cycle
all roadusers move a number of blocks on the
drivelane as specified in the method
speed.

The roadusers on a specific drivelane are stored in a linked list. When a roaduser
moves on the drivelane, the position represented in the specific roaduser-class is
changed. The length of a drivelane is stored in the class
Road, which contains a
number of drivelanes. When a roaduser enters a drivelane, its position is the length
of the road, and when it moves forward, the position of the roaduser decreases.
The end of the road is represented by
position = 0.

4.2.2 Nodes and subclasses

The class Node and all its subclasses are located in gld.infra Node is the abstract
class of all nodes.
Junction and SpecialNode are subclasses of Node. Junction



More intriguing information

1. The name is absent
2. Auction Design without Commitment
3. The name is absent
4. The name is absent
5. Towards Learning Affective Body Gesture
6. Lumpy Investment, Sectoral Propagation, and Business Cycles
7. The value-added of primary schools: what is it really measuring?
8. The name is absent
9. The name is absent
10. What Contribution Can Residential Field Courses Make to the Education of 11-14 Year-olds?
11. Temporary Work in Turbulent Times: The Swedish Experience
12. The name is absent
13. Internationalization of Universities as Internationalization of Bildung
14. Pricing American-style Derivatives under the Heston Model Dynamics: A Fast Fourier Transformation in the Geske–Johnson Scheme
15. The name is absent
16. Placentophagia in Nonpregnant Nulliparous Mice: A Genetic Investigation1
17. A MARKOVIAN APPROXIMATED SOLUTION TO A PORTFOLIO MANAGEMENT PROBLEM
18. FASTER TRAINING IN NONLINEAR ICA USING MISEP
19. The name is absent
20. FOREIGN AGRICULTURAL SERVICE PROGRAMS AND FOREIGN RELATIONS