Theoretically you can build a behavioral switch model using various primitives, but I'm not sure how well it correlates to the physical switch, this is quite some work, and it is certainly not the intention of PLECS. If this is something that you hold serious interest in though, please email your inquiry to support@plexim.com and we can discuss it in more detail.