PHP 클래스 TreemapNode, simpletest

파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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