SimulationHandler

class SimulationHandler(graphqlClient: GraphQLClient)(source)

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

Pauses the simulation.

Link copied to clipboard

Plays the simulation.

Link copied to clipboard
suspend fun status(): String?

Returns the status of the simulation.

Link copied to clipboard

Terminates the simulation.