GraphQLMonitor
class GraphQLMonitor<T, P : Position<out P>> @JvmOverloads constructor(val environment: Environment<T, P>, host: String = DefaultGraphQLSettings.DEFAULT_HOST, port: Int = DefaultGraphQLSettings.DEFAULT_PORT, teardownOnSimulationTermination: Boolean = true, serverDispatcher: CoroutineDispatcher = Dispatchers.Default) : OutputMonitor<Any, Nothing> (source)
An OutputMonitor observing the environment through a GraphQL server listening on host:port. The server is started in a new coroutine on the serverDispatcher dispatcher. By default, the server is stopped after the simulation terminates. This behavior can be changed by setting teardownOnSimulationTermination to false.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
open fun stepDone(environment: Environment<Any?, Nothing?>, reaction: Actionable<Any?>?, time: Time, step: Long)