Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 D-1
D
Sample I Process Program Code
Scope of This Appendix
Appendix D provides a sample I process program for a pseudo-subsystem (SPIFFY),
illustrating the program model and associated I process development library services
described in this manual.
Overview of the SPIFFY Subsystem
The SPIFFY subsystem consists of SPIFFY manager processes, each controlling a set of
SPIFFY objects. A manager supports a programmatic interface consisting of formatted
messages. There are seven object types arranged in the following hierarchy:
REACTOR ASSEMBLY
/ | \ / \
BOILER VALVE CHAMBER COGWHEEL GEAR
The hierarchical parent of a SPIFFY object is known as the object’s “Pop.
Characteristics of SPIFFY Objects
A REACTOR object comprises an internal group of objects and has no individual
characteristics of its own. The other objects have various individual characteristics, as
follows:
BOILER, VALVE, and CHAMBER objects consist of a number of elements (each
of which is too insignificant to be considered a separate entity). When these
elements are raised to a temperature above absolute 0, they exert pressure.
BOILER, VALVE, and CHAMBER have the following characteristics:
Pressure
Volume
Temperature
Number of elements
ASSEMBLY, COGWHEEL, and GEAR objects have the following characteristics
Color: YELLOW, CYAN, MAGENTA, BLACK
Composition: IRON, STEEL, COPPER, BRASS
State for ASSEMBLY objects: STOPPED, GOING
State for COGWHEEL and GEAR objects: IDLE, COASTING, ROTATING,
LOCKED
An object is LOCKED when its “Pop” object is STOPPED.