Essential Kernel Procedures

These KPs represent the most-used functions. They are grouped by the following areas of functionality:

Attribute Access

Get or set attribute values. (Simulation attributes are “global” to the simulation model.)

Distributions

Load distributions by name; Obtain outcomes from loaded distributions.

Dynamic Processes

Create a new “child” process of a given type; Destroy a process.

Identify the current process.

Invoke another process (cause it to execute now). As an invoked process, get optional state that is passed.

Events and Time

Cancel an event.

Obtain current simulation time.

Terminate simulation.

Identification and Discovery

Find the containing object.

Find the parent of an object.

Find an object’s descendants in the hierarchy.

Find an object’s peers. “objmtype” is one of an enumerated set; “direction” is IN or OUT. Possible use: how many links am I connected to; then, give me the i’th link.

Interface Control Information (ICIs)

Create or destroy an ICI.

Get or set ICI attribute values.

Associate an ICI with a particular interrupt.

Interrupt Processing

Schedule an interrupt for this object or another at a given time. Optionally pass a “code”.

Obtain various attributes of the current interrupt.

Packet Generation and Processing

Create, copy, or destroy a packet.

Get or send a packet. (with optional delay)

Get and set named fields of a packet.

Get certain properties of a packet.

Insert or remove a packet from a specified subqueue.

Statistic Recording

Obtain a handle for a statistic, given its name. Type is Global or Local. Optionally specify an index when a single statistic name encompasses multiple independent time series.

Write a new value to a particular statistic. (new value is assumed to be recorded at the current time)