Creating an instance of a type

This section describes the circumstances under which you can create an instance of a type and provides an example.

You can create an instance of a type in the following cases:
  • The type is unshared, your current replica masters the type, and no instance restrictions exist.
  • The type is shared, your current replica masters the target object, and no instance restrictions exist. If the type is global, a local copy of the type must exist in the replica, or the current administrative VOB replica must master the type.

Example

The administrator at the boston_hub replica creates an attribute type with the following command:
cleartool mkattype –shared –vpbranch –nc TESTED 
This attribute type is defined to be shared across replicas, with the restriction that at most one instance can be created on each branch of an element. You can create an attribute of that type on a version if both of the following things are true:
  • Your current replica masters that version’s branch.
  • No attribute of that type already exists on a version on that branch (assuming no other instance restrictions).