Top Banner
Xiao Yang, Zhi Dong. Final Design Presentation
13

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

Jan 20, 2018

Download

Documents

Mervyn Ferguson

Registration ( Proxy, Singleton )
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
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?