Object name, Object key, Object name object key – Visara Master Console Center Scripting Guide User Manual

Page 25

Advertising
background image

Chapter 2 Advanced Topics

Scripting Guide

25

Object Name

The object name is, obviously enough, the name of an object. In object-
oriented terms, the object itself is an instance of the object type. Each
object represents an instance of the object type and therefore has a unique
name.
An object’s name:

ƒ

Cannot contain a colon. (The colon is a delimiter.)

ƒ

Must be unique per MCC in the CPU class.

ƒ

Must be unique per CPU in the OS class.

ƒ

Must be unique per OS in the SW class.

ƒ

Must be unique per CPU in the UNIT class.

Object Key

Each object has a “hierarchical” key, referred to as the object key. The
object key is a string expression specifying a precise object by referring to
the chain of object names. The syntax rules for object keys state that
colons should separate objects.
Only the script command OBJID() uses the object key. All other script
commands utilize the object ID generated by that command.
An example of the full syntax of an object key is ‘CPU:OS:SOFTWARE’ or
‘CPU:UNIT’.

Advertising