In Smart P&ID there is an abstract class for Equipment with four subclasses for Vessel, Exchanger, Mechanical and OtherEquipment. In the SmartPlant schema, there are four PID equipment classes.
-
PIDProcessVessel
-
PIDHeatTransferEquipment
-
PIDMechanicalEquipment
-
PIDProcessEquipment
The tool schema has a MapClass for each of the four equipment subclasses in Smart P&ID and another MapClass for the abstract Equipment class.
Publish
The four MapClasses map the corresponding equipment classes in Smart P&ID and the SmartPlant schema. A Smart P&ID vessel is published as a PIDProcessVessel in SmartPlant; an Exchanger is published as a PIDHeatTransferEquipment, and so forth. The MapClass for Equipment does not play any role in the publish operation.
Retrieve
When a document is being retrieved, each incoming object is tested for identifying interfaces to determine what type of object it is. The object is first tested for the identifying interfaces for Vessel, Exchanger, Mechanical and OtherEquipment. If the object has one of these identifying interfaces, it is retrieved as that specific type of equipment (using the MapProperties associated with the specific MapClass for that equipment class in the tool schema). If the object is not recognized by its interfaces as any of these specific equipment types, but it is recognized as Equipment, it is retrieved as generic equipment (using the MapProperties associated with the generic Equipment MapClass in the tool schema).