Package-level declarations

Types

Link copied to clipboard
data class ConcentrationSurrogate<T>(val origin: Concentration<T>, val content: String) : GraphQLSurrogate<Concentration<T>>

A GraphQL surrogate for a Concentration object. Note: the content of the surrogate is a String (Json String) representation of the actual content inside the origin.

Link copied to clipboard
data class EnvironmentSurrogate<T, P : Position<out P>>(val origin: Environment<T, P>, val dimensions: Int = origin.dimensions) : GraphQLSurrogate<Environment<T, P>>

A surrogate for Environment.

Link copied to clipboard
data class GenericPositionSurrogate(val coordinates: List<Double>, val dimensions: Int = coordinates.size) : PositionSurrogate

An implementation of PositionSurrogate for a generic Position object.

Link copied to clipboard
open class GraphQLSurrogate<T>(val origin: T)

A surrogate for a GraphQL object. Each surrogate has an origin object, which is the alchemist object that the surrogate represents.

Link copied to clipboard
data class LayerSurrogate<T, P : Position<out P>>(val origin: Layer<T, P>, val posMapping: (List<Number>) -> P) : GraphQLSurrogate<Layer<T, P>>

A surrogate class for Layer. A position mapping function resolves the translation of a generic position (hopefully a it.unibo.alchemist.boundary.graphql.schema.model.surrogates.PositionSurrogate) object in a PositionSurrogate.

Link copied to clipboard
data class MoleculeInput(val name: String)

GraphQL input object for a molecule, that will avoid the use of a full Molecule or MoleculeSurrogate when client executes operations that require a molecule as parameter.

Link copied to clipboard
data class MoleculeSurrogate(val origin: Molecule, val name: String = origin.name) : GraphQLSurrogate<Molecule>

A surrogate class for Molecule.

Link copied to clipboard

A GraphQL surrogate for a Neighborhood.

Link copied to clipboard
data class NodeSurrogate<T>(val origin: Node<T>, val id: Int = origin.id) : GraphQLSurrogate<Node<T>>

A GraphQL surrogate for a Node object.

Link copied to clipboard
data class Position2DSurrogate(val x: Double, val y: Double, val coordinates: List<Double> = listOf(x, y), val dimensions: Int = 2) : PositionSurrogate

A 2D surrogate for a Position object.

Link copied to clipboard
data class PositionInput(val coordinates: List<Double>, val dimensions: Int = coordinates.size)

GraphQL input object for a generic position, that will avoid the use of a full Position or PositionSurrogate when client executes operations that require a position as parameter.

Link copied to clipboard

Surrogate for a generic Position objects.

Link copied to clipboard
data class ReactionSurrogate<T>(val origin: Reaction<T>, val inputContext: Context = origin.inputContext, val outputContext: Context = origin.outputContext, val node: NodeSurrogate<T> = origin.node.toGraphQLNodeSurrogate()) : GraphQLSurrogate<Reaction<T>>

A surrogate class for Reaction.

Link copied to clipboard
data class SimulationSurrogate<T, P : Position<out P>>(val origin: Simulation<T, P>) : GraphQLSurrogate<Simulation<T, P>>

A surrogate for Simulation.

Link copied to clipboard
data class TimeSurrogate(val origin: Time) : GraphQLSurrogate<Time>

A GraphQL surrogate for a Time.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard