~wmmapper/wmmapper/wmmapper

« back to all changes in this revision

Viewing changes to wmmapper/model/profile_collection.py

  • Committer: Alexander Bethke
  • Date: 2010-06-30 21:29:19 UTC
  • Revision ID: oolongbrothers@gmx.net-20100630212919-2r26xf9oyrben447
Created the ProfileCollectionTest unit test in the new wmmapper-test source folder.
Initial skelettal structure for ProfileCollection class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
'''
 
3
Created on Jun 30, 2010
 
4
 
 
5
@author: alex
 
6
'''
 
7
 
 
8
 
 
9
class ProfileCollection(object):
 
10
    '''
 
11
    The ProfileCollection holds the different profiles WMMapper manages
 
12
    '''
 
13
 
 
14
 
 
15
    def __init__(self):
 
16
        self.__profileMap = {}
 
17
 
 
18
 
 
19
    def put(self, profile):
 
20
        self.__profileMap[profile.get_name()] = profile
 
21
 
 
22
 
 
23
    def get(self, name):
 
24
        return self.__profileMap[name]