Research Article
Models and Frameworks: A Synergistic Association for Developing Component-Based Applications
Algorithm 3
Skeleton of the OSGi implementation of the example shown in Figure
4 (implementation of component
C_Server).
(1) public class C_Server implements I_Collision { | (2) public C_Server () {−−} | (3) @Override | (4) public double margin (Point start, Point end) { | (5) double distance; | (6) // check map and set “distance” accordingly | (7) return distance; | (8) } | (9) } |
|