Skip to content

Illegal lookup of qualified path to enumeration #55

@maltelenz

Description

@maltelenz

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"; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions