Local Packages


A local package is simply a package that is declared directly inside a class that is not a package. In the model MyCircuit below we use a local specialized version of the package Electrical.Components being replaced by the local type MyResistorModel. Several classes from the local package MyComponents are used for instantiating variables.




The class DeQueueLocalUser below uses the local package P that is a version of the package DoubleEndedQueue from the section Inherited Packages parameterized by the local type VerySecret.