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: Symbol not found for PauseSimulationMutation.Data

Pauses the simulation.

Link copied to clipboard
suspend fun play(): ERROR CLASS: Symbol not found for PlaySimulationMutation.Data

Plays the simulation.

Link copied to clipboard
suspend fun status(): ERROR CLASS: Unresolved name: status??

Returns the status of the simulation.

Link copied to clipboard
suspend fun terminate(): ERROR CLASS: Symbol not found for TerminateSimulationMutation.Data

Terminates the simulation.