PHP Class GraphAware\Reco4PHP\Executor\RecommendationExecutor

Show file Open project: graphaware/reco4php Class Usage Examples

Protected Properties

Property Type Description
$discoveryExecutor DiscoveryPhaseExecutor
$postProcessExecutor PostProcessPhaseExecutor

Public Methods

Method Description
__construct ( DatabaseService $databaseService )
processRecommendation ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine, GraphAware\Reco4PHP\Context\Context $context )

Private Methods

Method Description
buildBlacklistedNodes ( GraphAware\Common\Result\ResultCollection $result, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine )
doDiscovery ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine, GraphAware\Reco4PHP\Context\Context $context )
doPostProcess ( GraphAware\Common\Type\Node $input, Recommendations $recommendations, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine )
removeIrrelevant ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine, Recommendations $recommendations, array $blacklist )

Method Details

__construct() public method

public __construct ( DatabaseService $databaseService )
$databaseService GraphAware\Reco4PHP\Persistence\DatabaseService

processRecommendation() public method

public processRecommendation ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine, GraphAware\Reco4PHP\Context\Context $context )
$input GraphAware\Common\Type\Node
$engine GraphAware\Reco4PHP\Engine\RecommendationEngine
$context GraphAware\Reco4PHP\Context\Context

Property Details

$discoveryExecutor protected property

protected DiscoveryPhaseExecutor,GraphAware\Reco4PHP\Executor $discoveryExecutor
return DiscoveryPhaseExecutor

$postProcessExecutor protected property

protected PostProcessPhaseExecutor,GraphAware\Reco4PHP\Executor $postProcessExecutor
return PostProcessPhaseExecutor