Definition

Author: Changbeom Choi (@cbchoi) Copyright (c) 2014-2020 Handong Global University Copyright (c) 2021-2024 Hanbat National University License: MIT. The full license text is available at: https://github.com/eventsim/pyjevsim/blob/main/LICENSE

This module contains definitions for pyjevsim’s const and type.

class pyjevsim.definition.AttributeType(value)[source]

Bases: Enum

Enum for attribute types.

ASPECT = 1
RUNTIME = 2
UNKNOWN_TYPE = -1
static resolve_type_from_enum(enum)[source]

Resolves an attribute type to a string.

Parameters:

enum (AttributeType) – The attribute type enum

Returns:

The name of the attribute type

Return type:

str

static resolve_type_from_str(name)[source]

Resolves an attribute type from a string.

Parameters:

name (str) – The name of the attribute type

Returns:

The resolved attribute type

Return type:

AttributeType

class pyjevsim.definition.ExecutionType(value)[source]

Bases: Enum

Enum for execution types.

R_TIME = 0
V_TIME = 1
class pyjevsim.definition.ModelType(value)[source]

Bases: Enum

Enum for model types.

BEHAVIORAL = 0
STRUCTURAL = 1
UTILITY = 2
class pyjevsim.definition.SimulationMode(value)[source]

Bases: Enum

Enum for simulation modes.

SIMULATION_IDLE = 0
SIMULATION_PAUSE = 3
SIMULATION_RUNNING = 1
SIMULATION_TERMINATED = 2
SIMULATION_UNKNOWN = -1
class pyjevsim.definition.SingletonType[source]

Bases: object

A decorator for making a class a singleton.

System Object

Author: Changbeom Choi (@cbchoi) Copyright (c) 2014-2020 Handong Global University Copyright (c) 2021-2024 Hanbat National University License: MIT. The full license text is available at: https://github.com/eventsim/pyjevsim/blob/main/LICENSE

This module contains SystemObject, the top-level class for all models.

class pyjevsim.system_object.SystemObject[source]

Bases: object

Base class for all system objects, providing unique object IDs and creation time.

get_obj_id()[source]

Returns the unique object ID.

Returns:

The unique object ID

Return type:

int

Executor

Author: Changbeom Choi (@cbchoi) Copyright (c) 2014-2020 Handong Global University Copyright (c) 2021-2024 Hanbat National University License: MIT. The full license text is available at: https://github.com/eventsim/pyjevsim/blob/main/LICENSE

This module contains Executor, the parent class of all Executor Types.

class pyjevsim.executor.Executor(itime, dtime, ename, model, parent)[source]

Bases: object

Base class for executors.