在线问答系统类图
2019-01-30 11:02:22 59 举报
一个在线问答系统的类图
作者其他创作
大纲/内容
Player
+ id: String+ name: String+ password: String+ balance: int+ experience: int+ level: int+ head: String+ signature: String
ProposeController
+ questionService: QuestionService
ProposeView
+ proposeController: ProposeController
ReviewController
+ reviewService: ReviewService
+ getNextQuestion(): Question+ review()+ createReview(String qId): boolean+ getReviewingQuestions(String uId): List
View
ReviewService
+ reviewDao: ReviewDao
+ review()+ createReview(String qId): boolean+ getReviewingQuestions(String uId): List
Review
+ id: String+ pId: String+ status: int
RankDao
+ player: PlayerDao
+ rankBalance(): List+ rankExperience(): List
ReviewView
+ reviewController: ReviewController
+ navigateReview()+ getReviewStatus(String qId): String+ getNextQuestion(): Question+ review()+ notifyReviewChanged()
RankView
+ rankDao: RankDao
+ navigateRank()+ getRankBalance(String uId): int+ getRankExperience(String uId): int
RegisterView
+ RegisterController:registerController
CompetitionView
+ competitionController: CompetitionController
MatchView
+ matchController: MatchController
+ navigateMatch()+ match(String uId): void
QuestionService
+ questionDao: QuestionDao
CompetitionController
+ playerService: PlayerService+ competitionService: CompetitionService+ questionService: QuestionService+ reviewService: ReviewService
CompetitionService
+ competitionDao: CompetitionDao
+ createCompetition(): boolean+ getCorrectRate(String qId): double+ startRound()+ recordRound()
CompetitionDao
+ competition: Competition
ReviewDao
+ review: Review
QuestionDao
+ question: Question
Competition
+ id: String+ p1Id: String+ p2Id: String+ status: int+ roundList: List
Controller
RegisterController
+ playerService: PlayerService
ProfileView
+ playerDao: PlayerDao
+ navigateProfile()+ getBalance(String uId): int+ getExperience(String uId): int+ getLevel(String uId): int+ getDescription(String uId): String
LoginView
+ loginController:LoginController
Question
+ id: String+ name: String+ description: String+answer: String
GameMainView
- controller: Controller
+ navigateView()+ selectView(View view): void+ receiveNotification()
Model
LoginController
PlayerDao
+ player: Player
+ validate(Player p): boolean+ addPlayer(Player p): boolean+ getLevel(String uId): int+ getBalance(String uId): int+ modifyExperience(String uId): boolean+ modifyBalance(String uId): boolean
MatchController
+ playerService: PlayerService+ competitionService: CompetitionService
+ match(String uId): void+ getLevel(String uId): int+ getBalance(String uId): int+ modifyBalance(String uId): boolean+ createCompetition(): boolean+ selectView(View view): void
PlayerService
0 条评论
下一页