-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Dependency,it.unibo.alchemist.model.interfaces.Molecule,java.io.Serializable
public final class Junction extends SimpleMolecule
Represents a junction between two cells.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<Biomolecule, Double>moleculesInCurrentNodeprivate final Map<Biomolecule, Double>moleculesInNeighborNode
-
Constructor Summary
Constructors Constructor Description Junction(String name, Map<Biomolecule, Double> moleculesInCurrentNode, Map<Biomolecule, Double> moleculesInNeighborNode)Build a junction. Junction(Junction toClone)Builds a junction from another junction.
-
Method Summary
Modifier and Type Method Description Map<Biomolecule, Double>getMoleculesInCurrentNode()Map<Biomolecule, Double>getMoleculesInNeighborNode()Junctionreverse()Return the reversed junction of the current junction. booleandependsOn(Dependency mol)-
Methods inherited from class it.unibo.alchemist.model.implementations.molecules.SimpleMolecule
equals, getName, hashCode, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Dependency
makesDependent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Junction
Junction(String name, Map<Biomolecule, Double> moleculesInCurrentNode, Map<Biomolecule, Double> moleculesInNeighborNode)
Build a junction.- Parameters:
name- the name of the junction.moleculesInCurrentNode- A map of molecules (with their concentration) which was in the current node.moleculesInNeighborNode- A map of molecules (with their concentration) which was in the current node.
-
Junction
Junction(Junction toClone)
Builds a junction from another junction.- Parameters:
toClone- the junction to clone.
-
-
Method Detail
-
getMoleculesInCurrentNode
Map<Biomolecule, Double> getMoleculesInCurrentNode()
-
getMoleculesInNeighborNode
Map<Biomolecule, Double> getMoleculesInNeighborNode()
-
reverse
Junction reverse()
Return the reversed junction of the current junction. E.g. junction A-B return junction B-A
-
dependsOn
boolean dependsOn(Dependency mol)
-
-
-
-