|
|
|
|
|
|
|
Re: Get all class attributes, including those from association ends [message #1803725 is a reply to message #1803714] |
Thu, 07 March 2019 16:39 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
If you Validate your model you will see that you have 34 errors:
Description Resource Path Location Type
The required feature 'base_Class' of 'Activity Realization -> <<ActivityRealization, FogDevice>> <Package> Monitoring' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Data Model -> <<DataModel>> <Package> Models' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device ARM_32bit -> <<FogDevice>> <Interface> BloodPressureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> BloodSugarSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> HeartRateSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> InsulinPump' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device MIPS_32bit -> <<FogDevice>> <Interface> TemperatureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Class' of 'Fog Device x86_32bit -> <<ActivityRealization, FogDevice>> <Package> Monitoring' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device ARM_32bit -> <<FogDevice>> <Interface> BloodPressureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> BloodSugarSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> HeartRateSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> InsulinPump' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device MIPS_32bit -> <<FogDevice>> <Interface> TemperatureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Device' of 'Fog Device x86_32bit -> <<ActivityRealization, FogDevice>> <Package> Monitoring' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Interface' of 'Activity Realization -> <<ActivityRealization, FogDevice>> <Package> Monitoring' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Interface' of 'Fog Device x86_32bit -> <<ActivityRealization, FogDevice>> <Package> Monitoring' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Data Model -> <<DataModel>> <Class> TreatmentPlan' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Fog Device ARM_32bit -> <<FogDevice>> <Interface> BloodPressureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> BloodSugarSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> HeartRateSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Fog Device AVR_8bit -> <<FogDevice>> <Interface> InsulinPump' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'base_Package' of 'Fog Device MIPS_32bit -> <<FogDevice>> <Interface> TemperatureSensor' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'changeExpression' of '<Change Event> ChangeEvent1' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> callAmbulance_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> checkForTreatmentUpdates_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> getHeartRate_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> measureBloodPressureEmergency_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> measureBloodPressureStd_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> measureBloodSugar_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> measureTemperature_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> sendAggregatedDataToDoctor_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'target' of '<Call Operation Action> storeHeartRate_call' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'when' of '<Time Event> TimeEvent1' must be set model.uml /USER Pusztai/model Unknown EMF Problem
The required feature 'when' of '<Time Event> TimeEvent2' must be set model.uml /USER Pusztai/model Unknown EMF Problem
Once you have errors, expecting everything to work perfectly is a bit naive,.
If you tunnel down on e.g.The required feature 'base_Class' of 'Fog Device ARM_32bit -> <<FogDevice>> <Interface> BloodPressureSensor' must be set and look at FogDevice, each of base_Class, base_Device and base_Package has a non-zero lower bound mandating that the stereotype is applied to something that is a Class+Device+Package; unlikely.
20 of the errors are bad stereotype multiplicities.
The remaining 14 are incomplete models.
You haven't identified which Class is Attribute deficient, so I cannot tell whether fixuing the above fixes the problem.
Regards
Ed Willink
|
|
|
Re: Get all class attributes, including those from association ends [message #1803730 is a reply to message #1803725] |
Thu, 07 March 2019 18:15 |
Thomas Pusztai Messages: 27 Registered: September 2018 |
Junior Member |
|
|
Thanks for the hints. I've modified the Fog profile to allow a lower bound of 0 for the base_* that caused problems. I wanted these stereotypes to be applicable e.g., to classes, interfaces, and packages, but of course one stereotype application can't be made to all three at once. It clearly shows that this is my first custom UML profile :)
I've also corrected the other errors in the HealthCare model itself. I've pushed updates to both repositories. The validation now only has one warning about an interface having a non-public property, which shouldn't cause a problem here.
The problem with association ends not being included in getAllAttributes however, still remains. For example I tried running [self.getAllAttributes()/] in the Acceleo interpreter on the Treatment::TreatmentPlan class and the resulting list does not include "basalRate" and "bolus", which should come from the associations.
[Updated on: Thu, 07 March 2019 18:16] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02411 seconds