SimulationHandler

class SimulationHandler(graphqlClient: GraphQLClient)

Utility class to handle simulation lifecycle through GraphQL queries.

Parameters

graphqlClient

the GraphQL client connected to the server

Constructors

Link copied to clipboard
constructor(graphqlClient: GraphQLClient)

Functions

Link copied to clipboard
suspend fun pause(): <Error class: unknown class>

Pauses the simulation.

Link copied to clipboard
suspend fun play(): <Error class: unknown class>

Plays the simulation.

Link copied to clipboard
suspend fun status(): <Error class: unknown class>?

Returns the status of the simulation.

Link copied to clipboard
suspend fun terminate(): <Error class: unknown class>

Terminates the simulation.