You are on page 1of 10

Data Structure Project

3C rank http://www.xn--kput3p.tw/ http://www.lovego.com.tw/ http://www.sanjing3c.com.tw/ http://yagugeabe.pixnet.net/blog rank

Class Diagram
Tree UI Node ViewControl Keyword Mediator HTMLHandler SearchKeywordCommand AbstractCommand Faade

BOManager

Business Object Tree Node Keyword


class

class

class

Keyword (Class) -Fields


count name

-Properties
Name Score

// // //

-Methods
Keyword

Node //Node Node (Class) -Fields


parents children keyword name sum url

-Properties
Parents Children IsExternal IsRoot Level Sum

//nodeparents //nodechildren //List //nodeparentschildrenprivate String name; //nodeparentschildrenprivate float sum; //nodeparentschildrenprivate String url;

-Methods

BuildChildren BuildKeywords CalculateSum Node ToString

//NodeHTMLHandlerHERF Nodeprivate void buildChildren(){} //private void buildKeywords(){} //Tree

Tree //Root Tree (Class) -Fields -Properties -Methods


Add Append // private void buildKeywords(){} IsEmpty Name name root

PostOrderTraverse PerOrderTraverse Rank SetCount ToList Tree

//public List<Node>toList(){}

HTMLHandler //NodeURL HTML HTMLHandler (Class) -Methods


DeriveRelativeKeywoeds GetBody GetHTML GetPageName GetSubLink

UI (Class) Mediator (Class) //Mediator Pattern //faade

ViewControl (Class)

BoManager Faade ViewControl AbstractCommand & SearchKeywordCommand