Class NodeSurrogate
-
- All Implemented Interfaces:
public final class NodeSurrogate<T extends Object> extends GraphQLSurrogate<Node<T>>
A GraphQL surrogate for a Node object.
-
-
Constructor Summary
Constructors Constructor Description NodeSurrogate(Node<T> origin, Integer id)
-
Method Summary
Modifier and Type Method Description final Integer
getMoleculeCount()
Node<T>
getOrigin()
final Integer
getId()
final List<String>
properties()
final List<ReactionSurrogate<T>>
reactions()
Returns all reactions of the node. final MoleculeToConcentrationMap
contents()
final String
getConcentration(MoleculeInput molecule)
Calculates the concentration of a molecule. final Boolean
contains(MoleculeInput molecule)
Tests whether a node contains a Molecule. -
-
Method Detail
-
getMoleculeCount
final Integer getMoleculeCount()
-
properties
final List<String> properties()
- Returns:
the list of properties/capabilities of this node as a string.
-
reactions
final List<ReactionSurrogate<T>> reactions()
Returns all reactions of the node.
-
contents
final MoleculeToConcentrationMap contents()
- Returns:
the molecule corresponding to the i-th position.
-
getConcentration
final String getConcentration(MoleculeInput molecule)
Calculates the concentration of a molecule.
- Parameters:
molecule
- the MoleculeInput object representing the molecule.
-
contains
final Boolean contains(MoleculeInput molecule)
Tests whether a node contains a Molecule.
- Parameters:
molecule
- the MoleculeInput object representing the molecule.- Returns:
true if the molecule is present, false otherwise
-
-
-
-