Skip to content

Emulation dto

EmulationScheduledDTO dataclass

Data Transfer Object representing an emulation.

Source code in libs/ddd/application/dtos/dtos/emulation_dto.py
@dataclass(frozen=True)
class EmulationScheduledDTO:
    """Data Transfer Object representing an emulation."""

    id: EmulationID
    emulator_sync: str
    format_type: str
    sync_type: str
    emulation_domain: str
    max_chunk_size: int
    timeout: int

StartEmulatorDTO

Bases: BaseModel

DTO for starting an emulation.

Source code in libs/ddd/application/dtos/dtos/emulation_dto.py
class StartEmulatorDTO(BaseModel):
    """DTO for starting an emulation."""

    emulator_sync: str
    format_type: str
    sync_type: str
    max_chunk_size: int
    emulation_domain: str
    max_chunk_size: int
    timeout: int

StatusDTO dataclass

Data Transfer Object representing the status of an emulation.

Source code in libs/ddd/application/dtos/dtos/emulation_dto.py
@dataclass(frozen=True)
class StatusDTO:
    """Data Transfer Object representing the status of an emulation."""

    global_status: str
    threads: dict[str, str]

EmulationStatusDTO dataclass

Data Transfer Object representing the status of an emulation.

Source code in libs/ddd/application/dtos/dtos/emulation_dto.py
@dataclass(frozen=True)
class EmulationStatusDTO:
    """Data Transfer Object representing the status of an emulation."""

    id: EmulationID
    status: StatusDTO