This class describes a Pedagogical Graph
| author | bruno |
|---|---|
| package | personalization |
| subpackage | ksources |
__construct(string $url, string $a)
stringthe url of the knowledge ressource
stringthe author of this graph instance
__toString() : string
stringa string with graph propertiesaddNode(\PedagogicalRessource $n, \PedagogicalRessource[] $parents)
generate(\PedagogicalRessource[] $rs, \PMDLeProfile[] $ps, string $rule, string[] $tgt)
\PMDLeProfile[]the PMDLeProfile set used to build the graph (TODO not used)
stringthe PedagogicalRessource metadata name
string[]the targeted name (index 0) and value (index 1) for the metadata
getEdges() : \Edges[]
\Edges[]the edges arraygetNodes() : \PedagogicalRessouce[]
\PedagogicalRessouce[]the node arraygetURL() : string
| inherited_from | \KSource::getURL() |
|---|
stringthe urlgetValueFromPath(string $path, string $d) : string | null
stringnot used
stringnot used
stringnullthe urlgiveSVG() : string
stringa svg representation of the graphmatchConstraint(string $c) : int
| see | \KSource::matchConstraint() |
|---|
stringthe constraint string
inta completion code, if 0: no matches, 1: match, other: errorcreateAbstractRessource(string $rule, string[] $tgt, \PedagogicalRessource[] $rs)
stringthe metadata name
string[]a 2-size array where index 0 is the prerequiste name and index 1 the targeted value
generatePrerequiste(\PedagogicalResosurce[] $rs, \PedagogicalRessource[] $rss, string $rule, string[] $tgt)
\PedagogicalResosurce[]the PedagogicalRessource to work with
stringthe PedagogicalRessource metadata name
string[]the targeted name (index 0) and value (index 1) for the metadata
layerProcess(\Edges[] $edges, \PedagogicalRessource[][] $layers, int $l)
\Edges[]the edges to check
\PedagogicalRessource[][]
intthe layer number to process
parseNode(\PedagogicalRessource[] $lay, int $x, int $m)
intstarting x position
intmax number of nodes per layer in the whole graph
$coords : \int[][]
$edges : \Edge[]
$height : int
$iter : int
$limit : int
$nHeight : int
$nWidth : int
$nodes : \PedagogicalRessource[]
$url : \url
| inherited_from | \KSource::$$url |
|---|
$width : int