This class describes an Edge in pedagogical graphs objects

author bruno
package personalization
subpackage ksources

 Methods

Constructs a new Edge instance, from two ressources

__construct($s, $t, $o) 

Parameters

$s

source node

$t

target node

$o

true if the path is available (open)

Getter for src

getSource() : \SimpleXMLElement

Returns

\SimpleXMLElementsource node

Getter for target

getTarget() : \SimpleXMLElement

Returns

\SimpleXMLElementtarget node

Getter for open

isOpen() : boolean

Returns

booleanif the edge is open or not

Setter for open

setOpen(boolean $o) 

Parameters

$o

boolean

the value for $open

 Properties

 

$open : boolean
     

$value : int