next up previous contents
Next: Profile Checker Up: Profiles Previous: User Defined matching function

Integration of Profile Values into Implementation Classes

An implementation class is suitable for a certain environment. This environment is described as a profile, which is integrated into the implementation class. The profiles are implemented as a class Profile which contains as member variable an array of ProfileValues. Every implementation class must implement an interface IFunctionality which defines a function getProfile(). The return type of getProfile() is Profile. An application programmer must implement the function getProfile() in every implementation class. In the body of getProfile() the profile values must be defined in order to create a Profile object.


 
Figure: getProfile()  

The code example of figure [*] is an excerpt from the implementation class Configuration_UX_NETSCAPE. Configuration_UX_NETSCAPE works properly on a x86 host running Windows NT and with Netscape as default browser.

The context awareness service obtains the profiles from the repository, which instantiates the implementation class and invokes the getProfile() function. The profiles are serialized and sent to the context awareness. The implementation of the repository is the subject of the following section.


next up previous contents
Next: Profile Checker Up: Profiles Previous: User Defined matching function
Copyright Munich Network Management Team