PHP Class GraphAware\Reco4PHP\Engine\SingleDiscoveryEngine

Inheritance: extends GraphAware\Reco4PHP\Transactional\BaseCypherAware, implements GraphAware\Reco4PHP\Engine\DiscoveryEngine
Show file Open project: graphaware/reco4php

Public Methods

Method Description
buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
defaultScore ( ) : float
produceRecommendations ( GraphAware\Common\Type\Node $input, GraphAware\Common\Result\ResultCollection $resultCollection, GraphAware\Reco4PHP\Context\Context $context ) : Recommendations
reasonResultName ( ) : string
recoResultName ( ) : string
scoreResultName ( ) : string

Method Details

buildScore() public method

public buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
$input GraphAware\Common\Type\Node
$item GraphAware\Common\Type\Node
$record GraphAware\Common\Result\Record
$context GraphAware\Reco4PHP\Context\Context
return GraphAware\Reco4PHP\Result\SingleScore

defaultScore() public method

public defaultScore ( ) : float
return float

produceRecommendations() final public method

final public produceRecommendations ( GraphAware\Common\Type\Node $input, GraphAware\Common\Result\ResultCollection $resultCollection, GraphAware\Reco4PHP\Context\Context $context ) : Recommendations
$input GraphAware\Common\Type\Node
$resultCollection GraphAware\Common\Result\ResultCollection
$context GraphAware\Reco4PHP\Context\Context
return GraphAware\Reco4PHP\Result\Recommendations

reasonResultName() public method

public reasonResultName ( ) : string
return string

recoResultName() public method

public recoResultName ( ) : string
return string

scoreResultName() public method

public scoreResultName ( ) : string
return string