Home » RailTopoModel newsgroup » RailTopoModel » role names on association ends
role names on association ends [message #1378] Thu, 23 June 2016 15:16 Go to next message
Felix Prüter is currently offline  Felix Prüter
Messages: 28
Registered: June 2016
Location: Berlin
Junior Member
Hello,
I assume that all names on associations on the diagrams are role names.
If true, all these names should have a sigular or plural ending corresponding the related multiplicity.
e.g.
SpotLocation --> PositioningNetElement: 1 netElement
LinearLocation --> PositioningNetElement: 1..* netElements
ComposuitionNetElement --> ElementPartCollection: 0..* elementCollections

Kind regards
Felix
SIGNON Deutschland GmbH


--
Felix Prüter
SIGNON Deutschland GmbH
Re: role names on association ends [message #1386 is a reply to message #1378] Mon, 27 June 2016 10:54 Go to previous messageGo to next message
christian.rahmig is currently offline  christian.rahmig
Messages: 436
Registered: January 2016
Senior Member
Dear Felix,

Am 23.06.2016 um 18:18 schrieb Felix Prüter:
> Hello,
> I assume that all names on associations on the diagrams are
> role names.
> If true, all these names should have a sigular or plural
> ending corresponding the related multiplicity.
> e.g.
> SpotLocation --> PositioningNetElement: 1 netElement
> LinearLocation --> PositioningNetElement: 1..* netElements
> ComposuitionNetElement --> ElementPartCollection: 0..*
> elementCollections
> [...]

Your assumption is correct. And we should keep it the same in the all
the diagrams. However, in railML3 UML, the role name always describes
one instance. For the XSD export, this results then in sth like this:

<linearLocation>
<netElement ref="..." />
<netElement ref="..." />
</linearLocation>

Here, netElement is the UML role name.

Best regards
Christian

--
Christian Rahmig
railML.infrastructure coordinator


Christian Rahmig – Infrastructure scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: role names on association ends [message #1388 is a reply to message #1386] Mon, 27 June 2016 14:00 Go to previous messageGo to next message
Felix Prüter is currently offline  Felix Prüter
Messages: 28
Registered: June 2016
Location: Berlin
Junior Member
Hi Chrisitian,

> And we should keep it the same in the all
the diagrams.


So the singular form should be used everywhere!?

Regards
Felix


--
Felix Prüter
SIGNON Deutschland GmbH
Re: role names on association ends [message #1425 is a reply to message #1388] Fri, 07 October 2016 10:57 Go to previous message
Alain Jeanmaire is currently offline  Alain Jeanmaire
Messages: 8
Registered: January 2016
Junior Member
Dear Felix,

to complete Christian's answer:

--> the best way is to use the singular or plural in accordance with the cardinality

Regards,
Alain Jeanmaire/Gilles Dessagne
SNCF Réseau

[Updated on: Fri, 07 October 2016 18:32] by Moderator

Report message to a moderator

Previous Topic: PositioningSystemCoordinate(s) referenced by an EntityLocation
Next Topic: Suggestion for an enhanced topology model
Goto Forum:
  


Current Time: Fri Mar 29 11:05:38 CET 2024