MODUL 2 Flashcards
(36 cards)
what is a model?
an abstraction/simplification of the system it represents
what does it mean that a modeling language have a notation?
notation = the elements that make up the language
what does it mean that a modeling language have semantics?
semantics = description of what the notation means, captured in meta-model
What are the 6 advantages of UML?
- formal
- concise
- comprehensive
- scaleable
- lessons learned
- standard
What is an informal language?
A language that does not have a formally defined noation of its elements. ex) nartural language
what are some problems when modeling with code?
- focuses only on the software and not the rest of the system
- contains every detail, no abstarction, no bigger picture
- can’t be understood by people who don’t read code
- might not be reusable
–> only one level of abstraction
abstraction (classes)
means that you skip irrelevant details in the description/definition. A class is to only contain relevant information for the context it is to be used in.
encapsulation (classes)
enables the class to hide its inner details from the outside world. with this the classes can change internally without it effecting how the class is interacted with. Small changes will not cause the system to break.
attributes (classes)
describes the state of an objects
operations (classes)
describe what the class can do and which operations it supports/ behaviours it has
4 visibility characteristics (classes)
- public
- protected
- package
- private
intitial node and end node (activity)
shows the start and finish of an activity diagram. The activity starts when the initial node becomes active.
edges / paths (activity)
shows the flow within an activity, the arrows show in wich directions the flow is going.
incoming and outgoing edge (activity)
decision and merge (activity)
like an if-else situation shown with a diamond. the path branches and then merges in a second diamond
guard condition (activity)
determines which path to take after a decision diamond, should be mutually exclusive
activity frame (activity)
contains an activitys actions, optional
forks and joins (activity)
used when actions happens in parallell or cocurrently. forks hae outgoing flows and joins have incomming flows.
time events
hourglass, represents a wait period or interval
recurring time event (activity)
hourglass without an incoming flow/edge
call activity node (activity)
shown with an upside-down pitchfork. it calls the activity corresponding to the node name. an action had to be made in to an activity itseld to specify the actions within it
object nodes (activity)
can be used to show the data flowing through the activty
pins (activity)
shows that an object is input to or output from an action
transformation (activity)
can be used when not the whole output object is needed as input fro the next action.