FrameIT
FactEquivalentsComparer Class Reference

Checks if both Facts are Equivalent, while accounting for Unity and floating point precission More...

Inheritance diagram for FactEquivalentsComparer:
FactComparer

Protected Member Functions

override bool Compare (Fact solution, Fact fact)
 Checks if both Facts are Equivalent, while accounting for Unity and floating point precission More...
 
override void Init ()
 unused More...
 

Additional Inherited Members

- Public Member Functions inherited from FactComparer
FactComparer SetSearchRight ()
 Sets search_righthanded, so that parameter order of Equals(Fact, Fact) is effectively: (Compare(Fact, Fact).solution, Compare(Fact, Fact).fact), when a ICollection<Fact> is on the right hand side of an System.Linq operation More...
 
FactComparer SetSearchLeft ()
 Sets search_righthanded, so that parameter order of Equals(Fact, Fact) is effectively: (Compare(Fact, Fact).solution, Compare(Fact, Fact).fact), when a ICollection<Fact> is on the left hand side of an System.Linq operation More...
 
override bool Equals (Fact left, Fact right)
 Called by System.Linq iff GetHashCode(Fact) returns same result for both parameters left and right . More...
 
override int GetHashCode (Fact obj)
 Called by System.Linq to check for possible fulfillment of each parameter before calling Equals(Fact, Fact) iff both results are the same. More...
 
- Protected Attributes inherited from FactComparer
bool search_righthanded
 defines parameter order for Equals(Fact, Fact) More...
 

Detailed Description

Checks if both Facts are Equivalent, while accounting for Unity and floating point precission

Member Function Documentation

◆ Compare()

override bool FactEquivalentsComparer.Compare ( Fact  solution,
Fact  fact 
)
protectedvirtual

Checks if both Facts are Equivalent, while accounting for Unity and floating point precission

Implements criteria, by which fact is beeing compared to solution

Parameters
solutionto be fulfilled
factto be fulfilling
Returns
true iff fact is described by solution

Implements FactComparer.

◆ Init()

override void FactEquivalentsComparer.Init ( )
protectedvirtual

unused

Implements FactComparer.


The documentation for this class was generated from the following file: