Package org.cy3sbml.cofactors
Class Network2CofactorMapper
java.lang.Object
org.cy3sbml.cofactors.Network2CofactorMapper
- All Implemented Interfaces:
Serializable
The split cofactor nodes of the networks, per (sub)network SUID.
For every split cofactor node the mapper stores its clones, the position of the node before the split, and for every edge of a clone the original edge of the cofactor it stands for. The original nodes and edges stay in the root network, so a merge adds them back.
Reached from the Cytoscape event/EDT thread, the task threads and the session
serialization, so every method is synchronized on the instance; collections
are returned as copies. The fields cofactor2clone and clone2cofactor
keep their names and types, so session files written by an older version still
deserialize; the fields added later are null in those and created on first use.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCloneEdges(Long networkSUID) The clone edges of the network with their original edges.The clones of the cofactor node, empty if it is not split.getCofactor(Long networkSUID, Long cloneSUID) The cofactor node of the clone, or null if the node is no clone.getCofactors(Long networkSUID) The split cofactor nodes of the network.getOriginalEdge(Long networkSUID, Long cloneEdgeSUID) The original edge of a clone edge, or null if the edge is no clone edge.double[]getPosition(Long networkSUID, Long cofactorSUID) The position of the cofactor node before the split, or null if unknown.keySet()The networks with split cofactors.voidStores a clone of the cofactor node.voidputCloneEdge(Long networkSUID, Long cloneEdgeSUID, Long edgeSUID) Stores the original edge a clone edge stands for.voidputPosition(Long networkSUID, Long cofactorSUID, double x, double y) Stores the position of the cofactor node before the split.voidremoveCloneEdge(Long networkSUID, Long cloneEdgeSUID) voidremoveCofactor(Long networkSUID, Long cofactorSUID) Removes the cofactor node with its clones and position; its clone edges are removed one by one.voidremoveNetwork(Long networkSUID) Removes all entries of the network, e.g. when it is destroyed.toString()
-
Constructor Details
-
Network2CofactorMapper
public Network2CofactorMapper()
-
-
Method Details
-
keySet
The networks with split cofactors. -
putClone
Stores a clone of the cofactor node. -
getCofactors
The split cofactor nodes of the network. -
getClones
The clones of the cofactor node, empty if it is not split. -
getCofactor
The cofactor node of the clone, or null if the node is no clone. -
putCloneEdge
Stores the original edge a clone edge stands for. -
getOriginalEdge
The original edge of a clone edge, or null if the edge is no clone edge. -
getCloneEdges
The clone edges of the network with their original edges. -
removeCloneEdge
-
putPosition
Stores the position of the cofactor node before the split. -
getPosition
The position of the cofactor node before the split, or null if unknown. -
removeCofactor
Removes the cofactor node with its clones and position; its clone edges are removed one by one. -
removeNetwork
Removes all entries of the network, e.g. when it is destroyed. -
toString
-