Class Junction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Dependency
,it.unibo.alchemist.model.Molecule
,java.io.Serializable
public final class Junction extends SimpleMolecule
Represents a junction between two cells.
-
-
Field Summary
Fields Modifier and Type Field Description public final Map<Biomolecule, Double>
moleculesInCurrentNode
public final Map<Biomolecule, Double>
moleculesInNeighborNode
public final static Dependency
EVERYTHING
public final static Dependency
EVERY_MOLECULE
public final static Dependency
MOVEMENT
-
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()
Junction
reverse()
Return the reversed junction of the current junction. boolean
dependsOn(Dependency mol)
-
Methods inherited from class it.unibo.alchemist.model.molecules.SimpleMolecule
equals, getName, hashCode, toString
-
Methods inherited from class it.unibo.alchemist.model.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()
- Returns:
a map of molecules and concentrations associated with this junction in the current node.
-
getMoleculesInNeighborNode
Map<Biomolecule, Double> getMoleculesInNeighborNode()
- Returns:
a map of molecules and concentrations associated with this junction in the neighbor node.
-
reverse
Junction reverse()
Return the reversed junction of the current junction. E.g. junction A-B return junction B-A
- Returns:
the reversed junction
-
dependsOn
boolean dependsOn(Dependency mol)
-
-
-
-