This class represents the consequence of a Rule of personnalisation

author bruno
package personalization
subpackage rules

 Methods

Constructs a new Consequence instance, with an array of operations

__construct(string[] $o) 

Parameters

$o

string[]

the operations string array

Analyze the syntax of the consequence and returns a code: <ul> <li>0: consequence is valid</li> <li>1xx: operation xx not valid</li> </ul>

analyze() : int

Returns

intreturn code for analysis

apply the transformations on KSouces TODO: only graph for the moment

apply(\KSource[] $ksp) : \the

Parameters

$ksp

\KSource[]

Returns

\themodified KSources TODO returns only graphs

build operations

buildOperations(string $c) 

Parameters

$c

string

the constraints string

 Properties

 

$map : string[]
 

$op : string[]