To add a new class to a model, use the interface keyword. The interface keyword indicates that any declarations that follow define a new class.

The syntax is as follows:

interface <class_name>:<parent_class>
{
<declarations>
}

In this example the printer class inherits from the UnitaryComputerSystem class, and is named SM_Printer.

interface SM_Printer:UnitaryComputerSystem
"Create a printer class inheriting from UCS"
{

 stored attribute string SM_PrtrLocation
 "Location of Printer"="";

}

The new class may include a description.

The VMware Smart Assurance MODEL Reference Guide describes the <declarations> syntax. In dynamic modeling, declarations include attributes, relationships, operations, problems, symptoms, aggregates, and events.