Utilities and Constants
Helper functions, constants, and enumerations.
These modules provide utility functions, constants, and example models.
Utility Functions (line_solver.utils)
The utils module contains helper functions for working with LINE models.
Mock module that can handle any attribute access
Constants and Enumerations (line_solver.constants)
The constants module defines enumerations and global constants used throughout
the LINE Solver package.
Scheduling Strategies
Distribution and Process Types
Node Types
Job Class Types
Routing Strategies
Service Strategies
Solver Types
Metric Types
Drop and Replacement Strategies
Join Strategies
- class JoinStrategy(*values)[source]
Bases:
EnumStrategies for join node synchronization in fork-join networks.
STD: Standard join (wait for all parallel branches)
PARTIAL: Partial join (proceed when some branches complete)
Quorum: Quorum-based join (wait for minimum number of branches)
Guard: Guard condition join (custom completion criteria)
Layered Network Types
- class CallType(*values)[source]
Bases:
EnumTypes of calls between tasks in layered networks.
SYNC: Synchronous call (caller waits for response)
ASYNC: Asynchronous call (caller continues immediately)
FWD: Forward call (caller terminates, response goes to caller’s caller)
- class ActivityPrecedenceType(*values)[source]
Bases:
EnumTypes of activity precedence relationships in layered networks.
These specify how activities are ordered and synchronized: - PRE_SEQ: Sequential prerequisite (must complete before) - PRE_AND: AND prerequisite (all must complete before) - PRE_OR: OR prerequisite (any must complete before) - POST_SEQ: Sequential post-condition - POST_AND: AND post-condition - POST_OR: OR post-condition - POST_LOOP: Loop post-condition - POST_CACHE: Cache post-condition
Polling Types
Event and Timing Types
- class EventType(*values)[source]
Bases:
EnumTypes of events in discrete-event simulation.
INIT: Initialization event
LOCAL: Local processing event
ARV: Job arrival event
DEP: Job departure event
PHASE: Phase transition event in multi-phase processes
READ: Cache read event
STAGE: Staging area event
- READ = 6
Verbose Level
Global Constants
- class GlobalConstants[source]
Bases:
objectGlobal constants and configuration for the LINE solver.
- Immediate = 1e-14
- classmethod get_instance()
Get the singleton instance of GlobalConstants.
- classmethod get_verbose()
Get the current verbosity level.
- classmethod set_verbose(verbosity)
Set the verbosity level for solver output.
- classmethod get_constants()
Get a dictionary of all global constants.
Example Gallery (line_solver.gallery)
The gallery module provides a collection of example queueing models for
validation, testing, and learning purposes.