コード例 #1
0
 def isEquivalentTo(self, other):
     if not type(other) is MethodDistribution:
         return False
     return (self.method == other.method
             and areEquivalent(self.object, other.object)
             and areEquivalent(self.arguments, other.arguments)
             and areEquivalent(self.kwargs, other.kwargs))
コード例 #2
0
 def isEquivalentTo(self, other):
     if not type(other) is FunctionDistribution:
         return False
     return (self.function == other.function
             and areEquivalent(self.arguments, other.arguments)
             and areEquivalent(self.kwargs, other.kwargs)
             and self.support == other.support)
コード例 #3
0
 def isEquivalentTo(self, other):
     if type(other) is not Scenario:
         return False
     return (areEquivalent(other.workspace, self.workspace)
             and areEquivalent(other.objects, self.objects)
             and areEquivalent(other.params, self.params)
             and areEquivalent(other.requirements, self.requirements)
             and other.external_sampler == self.external_sampler)
コード例 #4
0
 def isEquivalentTo(self, other):
     if not type(other) is Normal:
         return False
     return (areEquivalent(self.mean, other.mean)
             and areEquivalent(self.stddev, other.stddev))
コード例 #5
0
 def isEquivalentTo(self, other):
     if not type(other) is Range:
         return False
     return (areEquivalent(self.low, other.low)
             and areEquivalent(self.high, other.high))
コード例 #6
0
 def isEquivalentTo(self, other):
     if not type(other) is OperatorDistribution:
         return False
     return (self.operator == other.operator
             and areEquivalent(self.obj, other.object)
             and areEquivalent(self.operands, other.operands))
コード例 #7
0
 def isEquivalentTo(self, other):
     if not type(other) is AttributeDistribution:
         return False
     return (self.attribute == other.attribute
             and areEquivalent(self.object, other.object))
コード例 #8
0
 def isEquivalentTo(self, other):
     if not type(other) is TupleDistribution:
         return False
     return (areEquivalent(self.coordinates, other.coordinates)
             and self.builder == other.builder)
コード例 #9
0
 def isEquivalentTo(self, other):
     if type(other) is not type(self):
         return False
     return areEquivalent(self.allProperties(), other.allProperties())