Class EnvironmentSubscriptions
-
- All Implemented Interfaces:
-
com.expediagroup.graphql.server.operations.Subscription
public final class EnvironmentSubscriptions<T extends Object, P extends Position<out P>> implements Subscription
Exposes alchemist it.unibo.alchemist.model.Environment as a GraphQL subscription through it.unibo.alchemist.boundary.graphql.schema.model.surrogates.EnvironmentSurrogate.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentSubscriptions(Environment<T, P> environment)
-
Method Summary
Modifier and Type Method Description final Flow<SimulationSurrogate<T, P>>
simulation()
Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.SimulationSurrogate. final Flow<EnvironmentSurrogate<T, P>>
environment()
Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.EnvironmentSurrogate. -
-
Constructor Detail
-
EnvironmentSubscriptions
EnvironmentSubscriptions(Environment<T, P> environment)
-
-
Method Detail
-
simulation
final Flow<SimulationSurrogate<T, P>> simulation()
Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.SimulationSurrogate.
-
environment
final Flow<EnvironmentSurrogate<T, P>> environment()
Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.EnvironmentSurrogate.
-
-
-
-