public class NodeEvent extends LinkedLabeledIDEvent
This event is a start event, which is followed by an end event of the same content type. Comment
and metainformation events maybe nested between this and its according end event. (See the description
of JPhyloIOEventReader
for the complete grammar definition of JPhyloIO event streams.)
Constructor and Description |
---|
NodeEvent(java.lang.String id,
java.lang.String label,
java.lang.String linkedOTUID,
boolean isRootNode) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRootNode()
Indicates whether this node is a root of its tree or network.
|
getLinkedID, hasLink
checkID, getID
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, getType
public NodeEvent(java.lang.String id, java.lang.String label, java.lang.String linkedOTUID, boolean isRootNode)
public boolean isRootNode()
Note that in case of trees this property indicates that this node can be one (alternative) root in a semantic sense. The topological representation of the tree is independent of this and only determined by how its nodes are linked by edge events. The presence of a root edge defining a length of a tree branch leading to the node that is topologically at the root of the tree is also fully independent of this property.
In NeXML root nodes are identified by having a root="true"
attribute. In Newick and
Nexus only the property of the topological root node is modeled by the [&R]
or [&U]
hot comments preceding a Newick string. The same applies for the rooted
attribute of the phylogeny
tag in PhyloXML.
true
if this node is a possible root or false
otherwise