CREATE_OBJECTinstruction
This instruction creates an SMI object of specified class.
Syntax
create_object
where
object-name
or
- $(
parameter-name )
whereparameter-name is the name of an action parameter of the action containing the create_object instruction.
Example:
As any other instruction, this instruction would be incorporated in a action. Let's call this action arbitrarily CONFIGURE. Also let's assign to this action a parameter and call it equally arbitrarily NEW_POWER_SUPPLY. Let's also assume, that our SMI domain contains a class of objects called POWER_SUPLY. In one of the objects of the domain we could than add action CONFIGURE as follows:
action : CONFIGURE (NEW_POWER_SUPPLY)
. . .
create_object $(NEW_POWER_SUPPLY) of_class POWER_SUPPLY
. . .
The action CONFIGURE, most likely invoked from a GUI, would pick up the value of the parameter NEW_POWER_SUPPLY(let's call it arbitrarily HV109) and a new object called HV109 of the above class would be created.