-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Here and in multiple places further down in the model, the enumeration values are referred to using their full name:
| parameter vehicle_name VN = VirtualFCS.Vehicles.VehicleProfile.vehicle_name.Default "Vehicle name"; |
However this is invalid Modelica. As reported by Wolfram System Modeler:
Invalid lookup in a non-encapsulated class. When looking up
VirtualFCS.Vehicles.VehicleProfile.vehicle_name.Defaultin scopeVirtualFCS.Vehicles.VehicleProfile,vehicle_nameis not encapsulated. SinceVirtualFCS.Vehicles.VehicleProfileis not a package nor an operator,vehicle_name.Defaultmust be looked up among encapsulated element only.
This can be fixed by referring to the type with only the class name without qualifiers:
parameter vehicle_name VN = vehicle_name.Default "Vehicle name";
Metadata
Metadata
Assignees
Labels
No labels