Activity Diagram for Cricinfo

Create some activity diagrams for the Cricinfo.

We'll cover the following

Activity diagrams are a great way to visualize the flow of messages from one activity to the other in the system. There can be different activity diagrams that we can create for Cricinfo. In this lesson, we will create an activity diagram for making a record of a ball.

Make a record of a ball

The states and actions that will be involved in this activity diagram are provided below.

States

Initial state: The system adds a ball to the over.

Final state: The ball record is saved.

Actions

The system adds a ball to the over. The system chooses the ball type that was bowled. The system determines if the batter got out. If they did not, it adds the score that was made. Finally, the commentary is added to the ball, and the ball record is saved.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.