src/snac/server/identityReconciliation/ReconciliationEngine.php
/**
     * Main reconciliation function
     *
     * This function does the reconciliation and returns the top identity from
     * the engine.  Other top identities and their corresponding score vectors
     * may be obtained by other functions within this class.
     * @param \snac\data\Constellation $identity The constellation to be searched. This identity
     * must be in the proper form
     * @return identity The top identity by the reconciliation
     * engine
     */
Main reconciliation function
This function does the reconciliation and returns the top identity from
the engine.  Other top identities and their corresponding score vectors
may be obtained by other functions within this class.
@param \snac\data\Constellation $identity The constellation to be searched. This identity
must be in the proper form
@return identity The top identity by the reconciliation
engine
Main reconciliation function This function does the reconciliation and returns the top identity from the engine . Other top identities and their corresponding score vectors may be obtained by other functions within this class . @param \ snac \ data \ Constellation $identity The constellation to be searched . This identity must be in the proper form @return identity The top identity by the reconciliation engine
public function reconcile($identity) {
        unset($this->rawResults);
        unset($this->results);
        $this->rawResults = array();
        $this->results = array();
        $this->weight = new weights\SameAsStaticWeight();
        foreach ($this->tests as $test) {
            $this->rawResults[$test->getName()] = $test->run($identity, null);
        }
        $this->collateResults();
        unset($this->rawResults);
        $this->rawResults = array();
        foreach ($this->postProcessingTests as $test) {
            $this->rawResults[$test->getName()] = $test->run($identity, $this->results);
        }
        $this->collateResults();
        $this->generateScores();
        $this->sortResults();
        return $this->topResult();
    }
public function reconcile ( $ identity ) { unset ( $ this -> rawResults ) ; unset ( $ this -> results ) ; $ this -> rawResults = array ( ) ; $ this -> results = array ( ) ; $ this -> weight = new weights \ SameAsStaticWeight ( ) ; foreach ( $ this -> tests as $ test ) { $ this -> rawResults [ $ test -> getName ( ) ] = $ test -> run ( $ identity , null ) ; } $ this -> collateResults ( ) ; unset ( $ this -> rawResults ) ; $ this -> rawResults = array ( ) ; foreach ( $ this -> postProcessingTests as $ test ) { $ this -> rawResults [ $ test -> getName ( ) ] = $ test -> run ( $ identity , $ this -> results ) ; } $ this -> collateResults ( ) ; $ this -> generateScores ( ) ; $ this -> sortResults ( ) ; return $ this -> topResult ( ) ; }
Main reconciliation function
 This function does the reconciliation and returns the top identity from
 the engine.
Main reconciliation function This function does the reconciliation and returns the top identity from the engine .
// Run the tests and collect the results // Fix up the results by organizing them by name, then by test // Run post-processing tests over all the testing results that apply additional filter scores // Re-collate the post-processing tests inso the main result list // Generate all the scores // Sort by score // Return the top result from the list