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.Default in scope VirtualFCS.Vehicles.VehicleProfile, vehicle_name is not encapsulated. Since VirtualFCS.Vehicles.VehicleProfile is not a package nor an operator, vehicle_name.Default must 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";
Here and in multiple places further down in the model, the enumeration values are referred to using their full name:
VirtualFCS/VirtualFCS/Vehicles/VehicleProfile.mo
Line 7 in df1aa5a
However this is invalid Modelica. As reported by Wolfram System Modeler:
This can be fixed by referring to the type with only the class name without qualifiers: