MUM.profile
Interface INomadicUserProfile

All Superinterfaces:
IProfile
All Known Implementing Classes:
NomadicUserProfile

public interface INomadicUserProfile
extends IProfile

This interface describe the profile


Method Summary
 boolean addPath(java.lang.String key, Path path)
          Add a new place to the list of known places
 Path getPathFromKey(java.lang.String key)
          This method returns the path to the place referenced by the key.
 boolean isKey(java.lang.String key)
          This method tests if there is a couple with the key value
 boolean isPath(Path path)
          This method tests if the path passed as argument is present in the profile.
 boolean removePath(java.lang.String key)
          Deletes the path referenced by the key
 
Methods inherited from interface MUM.profile.IProfile
getIdentifier, getName, getSurname
 

Method Detail

addPath

public boolean addPath(java.lang.String key,
                       Path path)
Add a new place to the list of known places

Parameters:
key - the key that refereces the place
path - the path to the place
Returns:
true is the operation was successful, false if another couple with the same key has already been insered

removePath

public boolean removePath(java.lang.String key)
Deletes the path referenced by the key

Parameters:
key - the key that refereces the place
Returns:
true is the operation was successful, false if there is no couple with the key passed as argument

getPathFromKey

public Path getPathFromKey(java.lang.String key)
This method returns the path to the place referenced by the key. The key is a unique string identifier.

Parameters:
key - the key identifier
Returns:
the path to the place referenced by the key, null if there is no couple (key, path)

isPath

public boolean isPath(Path path)
This method tests if the path passed as argument is present in the profile.

Parameters:
path - the path we want to check
Returns:
the key for the requested path, null otherwise

isKey

public boolean isKey(java.lang.String key)
This method tests if there is a couple with the key value

Parameters:
key - the key
Returns:
true if a couple with the key value is present, false otherwise


Copyright © 2004 Luca Foschini