UML associations / terminology reference

Moderatoren: pmueller, SE - Design and Construction

llllllll
Erstie
Erstie
Beiträge: 19
Registriert: 29. Okt 2017 21:47

UML associations / terminology reference

Beitrag von llllllll » 10. Jul 2018 09:42

Hello,

just for clarifications since the definitions are not 100% specific on this: I'd like to know, what exactly satisfies an association between classes in UML and what is considered a reference we need to watch out for when looking for fragments of SOLID-priniciples or design patterns.
Does this include anything like fields, return types, arguments, instances of objects of another class? In SE we only defined how to specifically determine coupling between classes. But I'm at a loss how to easily identify an association or reference between classes. ( Is coupling some kind of association? )


Assuming following code from Task 5:

Code: Alles auswählen

public interface Expression {

   final static int MajorVersion = 1;

   final static int MinorVersion = 0;


   Constant eval(Map<String, Constant> values);

   <T> T accept(ExpressionVisitor<T> visitor);

}
I ignore connections to Java libraries.
We have associations/references to following classes:
Constant.java, since it is a return type
Map.java, since it is an argument
ExpressionVisitor.java, since it is an argument.

Is this correct? Thank you very much.

llllllll
Erstie
Erstie
Beiträge: 19
Registriert: 29. Okt 2017 21:47

Re: UML associations / terminology reference

Beitrag von llllllll » 10. Jul 2018 13:02

solved

Benutzeravatar
AizazZaidee
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 106
Registriert: 20. Apr 2016 22:49

Re: UML associations / terminology reference

Beitrag von AizazZaidee » 10. Jul 2018 14:26

Hi,
Would you please mind sharing your solution with us :-)

Antworten

Zurück zu „Software Engineering - Design and Construction“