xiao yang, zhi dong. final design presentation. overview of design server client voters subclasses...

13
Xiao Yang, Zhi Dong. Final Design Presentation

Upload: mervyn-ferguson

Post on 20-Jan-2018

215 views

Category:

Documents


0 download

DESCRIPTION

Registration ( Proxy, Singleton )

TRANSCRIPT

Page 1: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Xiao Yang, Zhi Dong.

Final Design Presentation

Page 2: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Overview of Design

Server Client

Voters Subclasses of voters

votes

Page 3: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Registration( Proxy, Singleton)

Page 4: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Authentication( Proxy)

Page 5: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Voter Factory

Page 6: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Ballot Factory( Factory, Composite, Chain of Responsibility)

Page 7: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Voting

Page 8: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Anonymized Voting

• Using a token based method

• After the local ballot received the name and voting time, then it generates a token which is stores in database <token, candidate>, where token is not able to be inferred.

• As some revote happen, it looks up for the record in database based on the token. Subtract 1 from the previous candidates vote number, add 1 on the changed candidate’s vote number.

Page 9: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Return results

Page 10: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Information Updated(Observer)

Page 11: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Database Singleton

Page 12: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Overview of Design continued

Page 13: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…

Questions?