Here are the first objects we identified for the security card system
Card
Scanner
Persons—Employee, visitor, security, custodial
Scan
Record
Room
Validator
Here are the first class diagrams for the scanner and scan objects
Here is the inheritance diagram for person
Here is the diagram for the scanner class in visual studio
Lastly here is the code visual studio generated
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Scanner { public class Scanner { private string scannerID; public string ScannerID { get { return scannerID; } set { scannerID = value; } } private DateTime dateTimeStamp; public DateTime DateTimeStamp { get { return dateTimeStamp; } set { dateTimeStamp = value; } } private string status; public string Status { get { return status; } set { status = value; } } public bool ReadCard(string cardNumber) { throw new System.NotImplementedException(); } public bool UnlockDoor() { throw new System.NotImplementedException(); } public void RecieveScanStatus(bool status) { throw new System.NotImplementedException(); } public bool StatusSend() { throw new System.NotImplementedException(); } } }
No comments:
Post a Comment