public class HistoryGraph extends Object
HistoryEvent and HistoryNode for more information about the elements
of the history graph.
Instances of this class are immutable.| Constructor and Description |
|---|
HistoryGraph(HistoryNode rootNode)
Returns a
HistoryGraph instance. |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<HistoryEvent> |
getEdges() |
HistoryEvent |
getLatestHistoryEventOfAll()
Returns the most recent event of the WHOLE graph.
|
HistoryEvent |
getLatestHistoryEventOfRoot()
Returns the most recent event of the root node only.
|
HistoryEvent |
getLatestRelevantHistoryEventOfRoot()
Returns the most recent event of the root node only.
|
HistoryNode |
getRootNode() |
boolean |
isDeletedRootNode()
Returns
true if this node's event is a DELETION event. |
boolean |
isTransferredRootNode()
Returns
true if this node's event is a TRANSFER event. |
public HistoryGraph(HistoryNode rootNode)
HistoryGraph instance.rootNode - The root node of the history graph.NullPointerException - if rootNode is empty.public boolean isDeletedRootNode()
true if this node's event is a DELETION event.
This is only the case if the root node is the beforeNode of the event. Otherwise the event is a
CREATION event where the root node represents the afterNode, that is the new entry
an enzyme has been deleted to.true if the root node's event is of type
uk.ac.ebi.intenz.domain.constants.EventConstant.DELETION.public boolean isTransferredRootNode()
true if this node's event is a TRANSFER event.
This is only the case if the root node is the beforeNode of the event. Otherwise the event is a
CREATION event where the root node represents the afterNode, that is the new entry
an enzyme has been transferred to.true if the root node's event is of type
uk.ac.ebi.intenz.domain.constants.EventConstant.TRANSFER.public HistoryNode getRootNode()
public SortedSet<HistoryEvent> getEdges()
public HistoryEvent getLatestHistoryEventOfAll()
public HistoryEvent getLatestHistoryEventOfRoot()
public HistoryEvent getLatestRelevantHistoryEventOfRoot()
Copyright © 2014 EMBL-EBI. All rights reserved.