PHP Класс TreemapNode, simpletest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_description
$_name
$_parent
$_size
$_status

Открытые методы

Метод Описание
__construct ( $name, $description, $status = true )
compareChildren ( $a, $b ) Comparator method to rank child nodes by total weight.
fail ( ) Fail this node.
getChildren ( ) Return list of child nodes from direct edges.
getDescription ( ) : string
getName ( ) : string
getSize ( ) Gets the number of immediate child edges from this node.
getStatus ( ) : string
getTotalSize ( ) depth first search to get the total number of nodes that are descendants of this node.
isFailed ( ) Is this node failed?
isLeaf ( ) Is this node a leaf node?
putChild ( $node ) Add an edge to a child node

Описание методов

__construct() публичный метод

public __construct ( $name, $description, $status = true )

compareChildren() публичный метод

Comparator method to rank child nodes by total weight.
public compareChildren ( $a, $b )

fail() публичный метод

Fail this node.
public fail ( )

getChildren() публичный метод

Return list of child nodes from direct edges.
public getChildren ( )

getDescription() публичный метод

public getDescription ( ) : string
Результат string description of this node

getName() публичный метод

public getName ( ) : string
Результат string label of this node

getSize() публичный метод

Gets the number of immediate child edges from this node.
public getSize ( )

getStatus() публичный метод

public getStatus ( ) : string
Результат string status class string

getTotalSize() публичный метод

depth first search to get the total number of nodes that are descendants of this node.
public getTotalSize ( )

isFailed() публичный метод

Is this node failed?
public isFailed ( )

isLeaf() публичный метод

Is this node a leaf node?
public isLeaf ( )

putChild() публичный метод

Add an edge to a child node
public putChild ( $node )

Описание свойств

$_description публичное свойство

public $_description

$_name публичное свойство

public $_name

$_parent публичное свойство

public $_parent

$_size публичное свойство

public $_size

$_status публичное свойство

public $_status