Docsity

Sequence Diagram and Implementation - Project Report | CSI 3471, Study Guides, Projects, Research of Software Engineering

Toggle sidebar
bg1
1
CSI 3471
Build 2 Comments Revised 4/20/2009
Miscellaneous
Requirements document must contain a list of assumptions, e.g., the valid range of values
for a customer ID
SVN repository elements must be consistently named and each major element must be in
its own recognizable folder “at the top level”.
Make your class diagrams more useful/helpful by doing the following:
The size of the diagram can be reduced by not displaying functions which are “typical”,
e.g., for “set” classes or container classes (such as Account).
Create a separate diagram for each façade class when you want to list all of the façade
functions. In the diagrams where the façade class is simply “one of many”, it is not
necessary to display its functions.
Create a separate diagram for each design pattern that uses multiple classes. Show how it
“connects” to the rest of the classes. But it is not necessary or desirable to display all
system classes in one diagram. (It is not necessary to create a separate diagram for the
singleton pattern.)
Sequence Diagrams
Object names should be used where appropriate, in addition to class names.
In each sequence diagram identify the scenarios that are related, by scenario number.
This promotes traceability.
Design/Implementation
Do not use a string to represent the “type” of object that you have. Use a constant. For
example, there should not be a string inside a transaction object that identifies the type of
transaction that it represents.
Do not use the “generate code” function in Rhapsody. It creates too much other “stuff”,
e.g., extraneous comments that are only useful to Rhapsody.
Sort the functions within your Java classes so that they are in a consistent order using the
Eclipse utility. Then make sure that the order is the same for your Rhapsody class
diagrams. This makes it easier to locate functions and there is consistency between the
Java class and the UML class. This promotes traceability.
You should have one “reasonably sized” JFrame object (in its own file) and several
JPanel objects, each in its own file.
If you have extensive if-then-else statement in any Java file, then there something is
wrong with your design.
pf3
pf4

Partial preview of the text

Download Sequence Diagram and Implementation - Project Report | CSI 3471 and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity!

CSI 3471

Build 2 Comments Revised 4/20/

Miscellaneous

 Requirements document must contain a list of assumptions, e.g., the valid range of values for a customer ID  SVN repository elements must be consistently named and each major element must be in its own recognizable folder “at the top level”.

Make your class diagrams more useful/helpful by doing the following:

 The size of the diagram can be reduced by not displaying functions which are “typical”, e.g., for “set” classes or container classes (such as Account).  Create a separate diagram for each façade class when you want to list all of the façade functions. In the diagrams where the façade class is simply “one of many”, it is not necessary to display its functions.  Create a separate diagram for each design pattern that uses multiple classes. Show how it “connects” to the rest of the classes. But it is not necessary or desirable to display all system classes in one diagram. (It is not necessary to create a separate diagram for the singleton pattern.)

Sequence Diagrams

 Object names should be used where appropriate, in addition to class names.  In each sequence diagram identify the scenarios that are related, by scenario number. This promotes traceability.

Design/Implementation

 Do not use a string to represent the “type” of object that you have. Use a constant. For example, there should not be a string inside a transaction object that identifies the type of transaction that it represents.  Do not use the “generate code” function in Rhapsody. It creates too much other “stuff”, e.g., extraneous comments that are only useful to Rhapsody.  Sort the functions within your Java classes so that they are in a consistent order using the Eclipse utility. Then make sure that the order is the same for your Rhapsody class diagrams. This makes it easier to locate functions and there is consistency between the Java class and the UML class. This promotes traceability.  You should have one “reasonably sized” JFrame object (in its own file) and several JPanel objects, each in its own file.  If you have extensive if-then-else statement in any Java file, then there something is wrong with your design.

 A “large” action listener function usually means that you should have several listeners rather than only one. Also, a large action listener usually means that you have “too much stuff” in your container, e.g., a JPanel or JFrame.

Testing

 JUnit tests are not very useful unless they are carefully organized and adequately documented. Line after line of code inside a JUnit will not convince the skeptic that the tests are adequate. Clearly identify all of the various ways that a function can be called. Also, a JUnit without comments is a tipoff that there is something wrong with the tests.

For the next build you must do the following:

 Demonstrate clearly how (and where) a particular design pattern was used. The burden is on you to convince the evaluator that it is implemented correctly.  Only one façade object should be instantiated inside each JPanel object. This façade should only contain operations that can/should be called from that JPanel object.  There must be a “tailored” façade for each JPanel that contains only functions that are necessary for that JPanel. You should not give a JPanel object capabilities that it should not have.  A tailored façade must contain instances of the necessary “basic” facades, such as CustomerFacade or AccountFacade – but only the ones that it needs.  There must be only one Rhapsody model that contains all relevant classes and diagrams.

Build 3 will be scored based on the following categories:

 (30%) The test plan documents will be scored on o completeness: Does it cover all possibilities? o clarity: Are they understandable to someone reading them for the first time? o format: Are the test cases stated according to the prescribed format?  (25%) Your implementation will be graded based on o required behavior: Does it provide the required behavior? o construction quality: Are program constructs used according to good design principles, e.g., low coupling and high cohesion? o traceability: How accurately does the code coincide with the UML diagrams? o test results: Does the system pass all of the necessary tests?  (20%) Your UML diagrams will be graded based on o completeness (Do the diagrams together adequately represent your entire project?) o clarity (Are the diagrams understandable by UML-knowledgeable person who is not familiar with your project?) o traceability (Are the elements in your diagrams clearly associated with the Java code?)  (25%) System Overview, Requirements, and use of design patterns o completeness o usefulnes

System Test Plan

Setup Instructions: Start the application and hit the Test Setup button. This will load the sets, as follows:  Customer Set = [[11: Smith, John], [12: Doe, Jane], [13: Washington, George], [14: Mouse, Mickey]]  Account Set = [[51, 12, Checking], [52, 13, Checking], [53, 13, Savings], [54, 14, Checking], [55, 14, Savings], [56, 14, Checking]]  Assume all accounts have $

Test Case #1: Withdraw cash from an existing account with no transactions using a correct account ID.

Instructions:

  1. Choose Manage Accounts screen.
  2. Enter “51” in the Account ID field.
  3. Enter “50.50” in the Amount field.
  4. Select “Withdraw” from the Transaction Type drop-down menu.
  5. Hit Complete Transaction button.

Expected Result: ID: 51 $100.0 --> $49.

Instructions:

  1. Choose List Accounts screen.
  2. Hit List button.

Expected Result: Account Type: Checking ID: 51 CustomerID: 12 Deposit: 100. ID: 51 Balance: $49. Account Type: Checking ID: 52 CustomerID: 13 Deposit: 100. ID: 52 Balance: $100. Account Type: Savings ID: 53 CustomerID: 13 Deposit: 100. ID: 53 Balance: $100. Account Type: Checking ID: 54 CustomerID: 14 Deposit: 100. ID: 54 Balance: $100. Account Type: Savings ID: 55 CustomerID: 14 Deposit: 100. ID: 55 Balance: $100. Account Type: Checking ID: 56 CustomerID: 14 Deposit: 100. ID: 56 Balance: $100.