EventGroup

class someipy.EventGroup(id, events)

Class representing a SOME/IP eventgroup with an eventgroup id and a list of event ids.

Parameters:
  • id (int) –

  • events (List[Event]) –

__hash__()

Return a hash based on the group id and contained event ids.

events: List[Event]
classmethod from_json(json_str)

Create an EventGroup from a JSON string.

Parameters

json_strstr

JSON representation of an EventGroup.

Returns

EventGroup

Parameters:

json_str (str) –

Return type:

_T

property has_tcp: bool

Checks if the event group contains any events with TCP protocol.

Returns

bool

True if at least one event uses TCP, False otherwise.

property has_udp: bool

Checks if the event group contains any events with UDP protocol.

Returns

bool

True if at least one event uses UDP, False otherwise.

id: int
to_json()

Serialize this EventGroup to JSON.

Returns

str

JSON representation of the event group.

Return type:

str