View unanswered posts | View active topics It is currently Thu Jul 19, 2018 9:21 am



Reply to topic  [ 2 posts ] 
 Getting Role Cardinalities from Templates 
Author Message

Joined: Tue May 15, 2012 7:06 am
Posts: 12
Hello all!

We faced a problem which seems to be a common: the way to get all role properties from template is to use appropriate metatemplates, that offers properties such a RoleIndex, RoleFillerType and so on. But we cannot find a property to obtain Role Cardinality.

What could you suggest to do it properly?

We think that the proper way is to define something like HasCardinality in metatemplate p8:TemplateRoleDescription.


Wed Dec 05, 2012 6:50 am
Profile

Joined: Sun Jan 22, 2012 9:14 pm
Posts: 189
Your question suggests that a role can be used many times from a single template, if assigned a cardinality.

But a template has an internal model expressed in first order logic. A template role is connected to that model. It cannot be dynamic.

If a relationship needs to be multiple, the solution is to use multiple templates.

Here is Hans Teijgeler's application model that can be found at this link

Attachment:
two-stage-centrifugal-pump.jpg
two-stage-centrifugal-pump.jpg [ 51.09 KiB | Viewed 1137 times ]


The class-level template has cardinality, in this case set fixed to 2. That means that the instance of individual has 2 templates for the composition of impellers.


Thu Dec 06, 2012 2:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
eXTReMe Tracker
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.