Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses...
-
Upload
mervyn-ferguson -
Category
Documents
-
view
217 -
download
0
description
Transcript of Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses...
![Page 1: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/1.jpg)
Xiao Yang, Zhi Dong.
Final Design Presentation
![Page 2: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/2.jpg)
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…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/3.jpg)
Registration( Proxy, Singleton)
![Page 4: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/4.jpg)
Authentication( Proxy)
![Page 5: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/5.jpg)
Voter Factory
![Page 6: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/6.jpg)
Ballot Factory( Factory, Composite, Chain of Responsibility)
![Page 7: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/7.jpg)
Voting
![Page 8: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/8.jpg)
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…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/9.jpg)
Return results
![Page 10: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/10.jpg)
Information Updated(Observer)
![Page 11: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/11.jpg)
Database Singleton
![Page 12: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/12.jpg)
Overview of Design continued
![Page 13: Xiao Yang, Zhi Dong. Final Design Presentation. Overview of Design Server Client Voters Subclasses of…](https://reader035.fdocuments.net/reader035/viewer/2022070616/5a4d1bf47f8b9ab0599e73fe/html5/thumbnails/13.jpg)
Questions?