Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Working with Solution

Percy Mamedy edited this page Jun 8, 2016 · 3 revisions

Solution object

A Solution object gives an Option object its status rank in the decision making process. Which means that it qualifies how an Option object should be treated in regard to the Problem. Whether the Option should be favoured, excluded and so on... See structure

Check if solution is optimal and presented as a viable option

$solution->isFavoured();

Check if solution is incomplete

$solution->isIncomplete();

Check if solution is to be excluded

$solution->isExcluded();

Check if solution is out of range

$solution->doesNotMeetPreference();

Check if solution is shadowed by other solutions

$solution->isShadowedByOthers();

Check if solution shadows other solutions

$solution->shadowsOthers();

Get all solution keys that shadow this solution

$solution->getShadowMe();

Get all solution keys that this solution shadows

$solution->getShadows();

Check for SolutionStatusCause Object

$solution->hasStatusCause();

Get SolutionStatusCause object

$solutionStatusCause = $solution->getStatusCause();

The Solution Object is also a Collection and shares all methods of collection

SolutionStatusCause object

If the status of the option is incomplete or does_not_meet_preference, a SolutionStatusCause object that provides more information about the cause of the status. See structure

The SolutionStatusCause Object is also a Collection and shares all methods of collection