Data flow diagram/ Class diagram need help! Watch

TheItMaster
Badges: 7
Rep:
?
#1
Report Thread starter 1 year ago
#1
How do i implement these if i were to do this?
0
reply
winterscoming
Badges: 19
Rep:
?
#2
Report 1 year ago
#2
Have you tried looking for guides and examples online?

Data Flow Diagrams:
https://www.lucidchart.com/pages/data-flow-diagram

UML Class DIagrams:
https://www.ibm.com/developerworks/r...ge/sep04/bell/

By the way, you don't need to waste money on any fancy diagramming apps, at least I never used those apps in any of my coursework. I just used Pen & Paper, or scrawled something on a Whiteboard and used my phone to take a photo

If I ever needed to make them look a bit better, then I'd use the various Shapes and arrows in Microsoft Office PowerPoint instead. That's a bit of a faff, but there are enough different kinds of shapes and lines in PowerPoint to make it work pretty well.
0
reply
TheItMaster
Badges: 7
Rep:
?
#3
Report Thread starter 1 year ago
#3
(Original post by winterscoming)
Have you tried looking for guides and examples online?

Data Flow Diagrams:
https://www.lucidchart.com/pages/data-flow-diagram

UML Class DIagrams:
https://www.ibm.com/developerworks/r...ge/sep04/bell/

By the way, you don't need to waste money on any fancy diagramming apps, at least I never used those apps in any of my coursework. I just used Pen & Paper, or scrawled something on a Whiteboard and used my phone to take a photo

If I ever needed to make them look a bit better, then I'd use the various Shapes and arrows in Microsoft Office PowerPoint instead. That's a bit of a faff, but there are enough different kinds of shapes and lines in PowerPoint to make it work pretty well.
how would i implement one for a simple game like space invaders
0
reply
winterscoming
Badges: 19
Rep:
?
#4
Report 1 year ago
#4
(Original post by TheItMaster)
how would i implement one for a simple game like space invaders
To be honest, you're really asking the wrong question here - I get the feeling that the way you're going about this is backward.

To put forward an analogy, this is like asking "How would I create a painting of a house?" or "How would I compose some music for a Film?". Questions like that don't yield answers, they only yield more questions. What kind of house? What kind of film? What kind of painting? What kind of music? etc.

Data Flow Diagrams and UML diagrams aren't the starting point (nor are they the end point for that matter) - they're tools used as part of the thought process which goes into analysis and design. To be able to create those diagrams, and for those diagrams to actually make any sense, you need to start with a proper analysis of the program you're trying to write.

Diagrams like this are thought-tools for visualising specific aspects of requirements or design. The fact that you're asking this question means that your real problem is probably that you're jumping ahead of yourself before you've begun a deep analysis to create the requirements for your game. Furthermore, without the requirements analysis, you also have nothing to build upon for identifying parts of your design either.

Take a step back, and aim to write a clearly defined specification containing detailed functional requirements; your analysis should focus on whether there's enough detail in those requirements to describe how the game is actually going to work - a Data Flow Diagram should help you reason about this.

When you know how it's going to work, the next stage is to reason over those requirements to capture a design which describes the structure of the program, and decide whether it makes logical sense for the requirements - at that point, a UML Class Diagram starts to be useful.

Use your attempts at drawing those diagrams as a way to make sense of your thought process. If anything seems wrong or pieces are missing, then it signals that you need to spend more time thinking about the specific detail of the problem or how you would design the solution. Attempting to draw these diagrams should force you to think about the detail. You can't expect to get it right the first time (or even second or third), the diagrams will probably change a bunch of times as you spend more time thinking about how the game needs to work and what it needs to do

So, focus on the requirements and the structure of the game; these diagrams should be a natural artefact of having spent time reasoning over your requirements. You'll know when you've spent enough time thinking about your analysis, because the diagrams themselves will become increasingly obvious and clear - especially once you've got some code written down.

For a Data Flow Diagram:
Define functional requirements for the space invaders game, and do the following as part of your in-depth analysis of those requirements:
  • Identify data flows
  • Identify processes
  • Identify data stores
  • Identify external entities

Then, use the appropriate symbols for External Entities, Processes, Data Stores and Dataflows to put a diagram together which represents those things, where data flows connect the other pieces together. Check whether it makes sense, and modify it as you think of new ideas


For a UML Class Diagram:
Translate your requirements analysis into a design by considering the way you would define and structure classes in the code:
  • Identify classes in your program
  • Identify attributes and methods of those classes, including their access levels
  • Identify the relationships between those classes, if any exist

Then, use the appropriate symbols and notation for Classes, Attributes, Methods and Class-Relationships to put together a diagram which matches the class structure of the program
2
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • University of East Anglia
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19
  • University for the Creative Arts
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19
  • University of Gloucestershire
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19

Have you made up your mind on your five uni choices?

Yes I know where I'm applying (106)
66.25%
No I haven't decided yet (33)
20.63%
Yes but I might change my mind (21)
13.13%

Watched Threads

View All