UML associations / terminology reference

Moderatoren: pmueller, SE - Design and Construction

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

UML associations / terminology reference

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
Beiträge: 19
Registriert: 29. Okt 2017 21:47

Re: UML associations / terminology reference

solved

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

Hi,