Beispiel #1
0
 def _combine_interval_interval(cls, set1, set2):
     if set1.is_subset(set2):
         return set2
     elif set2.is_subset(set1):
         return set1
     else:
         set1_diff = SetDifference(set1, set2)
         return sets.UniqueSetsUnionSetPy([set1_diff, set2])
Beispiel #2
0
 def _combine_uniqueunion_uniqueunion(cls, set1, set2):
     return sets.UniqueSetsUnionSetPy([SetDifference(x, set2) for x in set1.sets_ls])
Beispiel #3
0
 def _combine_uniqueunion_uniqueunion(cls, set1, set2):
     return sets.UniqueSetsUnionSetPy(set1.sets_ls + set2.sets_ls)
Beispiel #4
0
 def _combine_interval_uniqueunion(cls, set1, set2):
     return sets.UniqueSetsUnionSetPy([set1] + set2.sets_ls)
Beispiel #5
0
 def _combine_finiteset_uniqueunion(cls, set1, set2):
     return sets.UniqueSetsUnionSetPy([set1] + set2.sets_ls)
Beispiel #6
0
 def _combine_finiteset_interval(cls, set1, set2):
     return sets.UniqueSetsUnionSetPy([set1, set2])