Package biana :: Package BianaObjects :: Module UserEntityRelation'
[hide private]
[frames] | no frames]

Source Code for Module biana.BianaObjects.UserEntityRelation'

 1  import sets 
 2   
 3   
4 -class UserEntityRelation(object):
5 """ 6 A class to represent a relation between user entities 7 """ 8
9 - def __init__(self, userEntityParticipants, externalEntityRelationIdList=[]):
10 11 self.externalEntityRelationIdSet = sets.Set(externalEntityRelationIdList) 12 self.uEId_participants = sets.Set(userEntityParticipants)
13
14 - def add_external_entity_relation(self, externalEntityRelationId):
15 self.externalEntityRelationIdSet.add(externalEntityRelationId)
16
18 return self.externalEntityRelationIdSet
19