Generator Model

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 Process Event Generator Model

class tests.model_peg.PEG(name)[source]

Bases: BehaviorModel

Process Event Generator (PEG) class for generating events in a simulation.

ext_trans(port, msg)[source]

Handles external transitions based on the input port.

Parameters:
  • port (str) – The port that received the message

  • msg (SysMessage) – The received message

int_trans()[source]

Handles internal transitions based on the current state.

output(msg_deliver)[source]

Generates the output message when in the “Generate” state.

Returns:

The output message

Return type:

SysMessage

Buffer Model

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 Buffer Model

class tests.model_buffer.Buffer(name)[source]

Bases: BehaviorModel

Buffer model to store simulation events.

ext_trans(port, msg)[source]

Handles external transitions based on the input port.

Parameters:
  • port (str) – The port that received the message

  • msg (SysMessage) – The received message

int_trans()[source]

Handles internal transitions based on the current state.

output(msg_deliver)[source]

Generates the output message when in the “Delay” state.

Returns:

The output message

Return type:

SysMessage

Recieve Model

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 Message Receive Model

class tests.model_msg_recv.MsgRecv(name)[source]

Bases: BehaviorModel

Message Receiver Model that handles simulation events.

ext_trans(port, msg)[source]

Handles external transitions based on the input port.

Parameters:
  • port (str) – The port that received the message

  • msg (SysMessage) – The received message

int_trans()[source]

Handles internal transitions based on the current state.

output(msg_deliver)[source]

No output function for MsgRecv.

Structural Model

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 Structural Model

class tests.model_stm.STM(name)[source]

Bases: StructuralModel