类图
2016-11-20 11:13:11 0 举报
类图是一种用于描述系统结构和关系的静态图形表示方法。它展示了系统中的类、接口、关联关系、继承关系等元素,并显示了它们之间的交互和依赖关系。类图中的每个类都由一个矩形表示,其名称位于矩形顶部,属性和方法则列在下方。接口以带有三角形标记的矩形表示,继承关系用箭头连接父类和子类。关联关系以实线连接两个类,表示它们之间的双向关系。类图还可用于展示类之间的关系,如聚合关系、组合关系和实现关系。通过类图,开发人员可以更好地理解系统的组成部分和它们之间的交互方式,从而有助于设计和实现高质量的软件系统。
作者其他创作
大纲/内容
ViewOfSystemInterface
+librarianLogin()+showSearchBooksNumber()+showSearchBookInfo()+showRegisterResult()+showDeleteResult()+showUpdateResult()
LibrarianContoller
-librarian: ArrayList-librarianDAO: LibrarianDAO
+addLibrarian(Librarian librarian):void+deleteLibrarian(Librarian librarian):void+login(Librarian librarian):Boolean+setLibrarianDAO(LibrarianDAO librarianDAO):Void
BookStorageDAO
-StorageFileName: String-Books: ArrayList
LibrarianDAO
+addLibrarian(Librarian librarian):void+deleteLibrarian(Librarian librarian):void+login(Librarian librarian):Boolean
ViewOfSystem
-BookStorageController bc
+librarianLogin()+setBookStorageController(BookStorageController bc);Void+getBookStorageController():BookStorageController+showSearchBooksNumber();Void+showSearchBookInfo();Void+showRegisterResult();Void+showDeleteResult();Void+showUpdateResult();Void
BookStorageController
-Books: ArrayList-bookStorageDAO:BookStorageDAO
Book
-bookNumber: String-bookName: String-authorName: String-publisherName: String-ISBN: String-price: Float-explanation: String
+ setBookName(String bookName):Void+ setAuthorName(String authorName):Void+ setPublisherName(String publisherName):Void+ setISBN(String ISBN):Void+ setPrice(Float price):Void+ setExplanation(String explanation):Void+ getBookName():String+ getAuthorName():String+ getPublisherName:String+ getISBN:String+getPrice:Float+ getExplanation:String
Librarian
-librarianName: String-password: String
+serPassword(String password):Void+setLibrianName(String librianName):Void+getLibrianName():String+verifyPassword(String password):Boolean
BaseControllerInterface
0 条评论
下一页