simplay

The simplay module aggregates SimPlay’s classes and functions. It is the only module that is imported by default when importing SimPlay.

The following tables list all of the available components in this module.

Core

VisualEnvironment([initial_time])

Extends the Environment class with visualization.

VisualComponent(env, id, type, visual[, tint])

Base class for all visual components.

VisualizationManager()

This class acts as a central point for all entities, visuals and events.

Components

VisualProcess(env, id, visual[, tint])

Shorthand for creating an entity of type PROCESS.

VisualResource(env, id, capacity, visual[, tint])

Extends the Resource class with

VisualContainer(env, id, visual[, tint, ...])

Extends the Container class with

VisualPreemptiveResource(env, id, capacity, ...)

Extends the PreemptiveResource class

VisualPriorityResource(env, id, capacity, visual)

Extends the PriorityResource class with

VisualStore(env, id, visual[, tint, capacity])

Extends the Store class with visualization.

VisualFilterStore(env, id, capacity, visual)

Extends the FilterStore class with

Visualization

VisualGrid(width, height, cols, rows)

This class represents a grid for the visualization.

Events

VisualEvent(for_id, timestamp, action, **kwargs)

Base class for all visual events.

SetVisible(for_id, timestamp, visible)

Event to set the visibility of a component.

SetPosition(for_id, timestamp, x, y)

Event to set the position of a component.

SetInteracting(for_id, timestamp, with_id)

Event to set the interaction of a component.

SetNotInteracting(for_id, timestamp, with_id)

Event to set the interaction of a component.

MoveNear(for_id, timestamp, target_id)

Event to move a component near another component.

MoveNearCell(for_id, timestamp, x, y)

Event to move a component near a cell in the grid.

SetTintColor(for_id, timestamp, color)

Event to set the tint color of a component.

SetSpriteFrame(for_id, timestamp, frame)

Event to set the sprite frame of a component.

SetDecoratingText(for_id, timestamp, text)

Event to set the decorating text of a component.

ResourceSetCapacity(for_id, timestamp, capacity)

Event to set the capacity of a resource.

ResourceSetUtilization(for_id, timestamp, ...)

Event to set the utilization of a resource.

ContainerSetCapacity(for_id, timestamp, capacity)

Event to set the capacity of a container.

ContainerSetLevel(for_id, timestamp, level)

Event to set the level of a container.

StoreSetCapacity(for_id, timestamp, capacity)

Event to set the capacity of a store.

StoreSetContent(for_id, timestamp, content)

Event to set the content of a store.

Primitives

ComponentType(value)

Enum for component types.

EventAction(value)

Enum for event actions.