Package-level declarations

Types

Link copied to clipboard
open class GraphQLMap<K, V>(val originMap: Map<K, V>, val size: Int)

Generic GraphQL compliant representation of a Map.

Link copied to clipboard
data class MoleculeToConcentrationEntry(val molecule: MoleculeSurrogate, val concentration: String)

A single entry in a MoleculeToConcentrationMap, storing a MoleculeSurrogate and its concentration.

Link copied to clipboard
data class MoleculeToConcentrationMap(val originMap: Map<MoleculeSurrogate, String>, val size: Int = originMap.size) : GraphQLMap<MoleculeSurrogate, String>

A GraphQL compliant representation of a Map storing Molecules and their concentrations.

Link copied to clipboard
data class NodeToPosEntry(val id: Int, val position: PositionSurrogate)

A single entry in a NodeToPosMap, storing a node's id and its position.

Link copied to clipboard
data class NodeToPosMap(val originMap: Map<Int, PositionSurrogate>, val size: Int = originMap.size) : GraphQLMap<Int, PositionSurrogate>

A GraphQL compliant representation of a Map storing it.unibo.alchemist.model.Nodes' ids and their position, represented as a PositionSurrogate.

Link copied to clipboard

Utility class for PositionSurrogate objects, used for conversion from Position and PositionInput objects.

Functions

Link copied to clipboard

Utility function that converts a Concentration content of type T to a Json String. If the serialization fails (i.e. the content does not provide a serializer), the string representation of the content is returned.

Link copied to clipboard
Link copied to clipboard

Converts a Map of it.unibo.alchemist.model.Nodes' ids and their position to a NodeToPosMap.