__builtin__ :: set :: Variable set :: Class Partition
[hide private]
[frames] | no frames]

Class Partition

source code

Deal with common set <-> partition interactions
Nested Classes [hide private]
  __metaclass__
Builds the base hierarchy for the given classname based on our typetree :todo: build classes with slots only as members are pretermined
Instance Methods [hide private]
    Set Membership
 
_addRemoveMember(self, objectset, mode) source code
 
addMember(self, objectset)
Add the given objectset or list of sets to the partition
source code
 
add(self, objectset)
Add the given objectset or list of sets to the partition
source code
 
removeMember(self, objectset)
Remove the given objectset from the partition
source code
 
discard(self, objectset)
Remove the given objectset from the partition
source code
 
replaceMember(self, objectset)
Replace existing objectsets with the given one(s)
source code
 
clear(self)
remove all members from this partition
source code
 
getMembers(self)
Returns: sets being member of this partition
source code
    Name Remapping
 
addSets(self, objectset)
Add the given objectset or list of sets to the partition
source code
 
removeSets(self, objectset)
Remove the given objectset from the partition
source code
 
replaceSets(self, objectset)
Replace existing objectsets with the given one(s)
source code
 
sets(self)
Returns: sets being member of this partition
source code
 
members(self)
Returns: sets being member of this partition
source code
    Protocols
 
__len__(self) source code
 
__iter__(self) source code
Method Details [hide private]

_addRemoveMember(self, objectset, mode)

source code 
Decorators:
  • @undoable

addMember(self, objectset)

source code 
Add the given objectset or list of sets to the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

add(self, objectset)

source code 
Add the given objectset or list of sets to the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

removeMember(self, objectset)

source code 
Remove the given objectset from the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

discard(self, objectset)

source code 
Remove the given objectset from the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

replaceMember(self, objectset)

source code 
Replace existing objectsets with the given one(s)
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls)

clear(self)

source code 
remove all members from this partition
Returns:
self
Decorators:
  • @undoable

getMembers(self)

source code 
Returns:
sets being member of this partition

Note: have to filter the members as there might be non-set connections in referenced environments

addSets(self, objectset)

source code 
Add the given objectset or list of sets to the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

removeSets(self, objectset)

source code 
Remove the given objectset from the partition
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls

replaceSets(self, objectset)

source code 
Replace existing objectsets with the given one(s)
Parameters:
  • objectset - one or multiple object sets
Returns:
self allowing chained calls)

sets(self)

source code 
Returns:
sets being member of this partition

Note: have to filter the members as there might be non-set connections in referenced environments

members(self)

source code 
Returns:
sets being member of this partition

Note: have to filter the members as there might be non-set connections in referenced environments