public interface TreeNetworkDataAdapter extends ElementDataAdapter<LabeledIDEvent>
Applications implementing this adapter may consider to inherit their implementation from
EmptyAnnotatedDataAdapter
or NoSetsTreeNetworkDataAdapter
.
Note that TreeTopologyExtractor
can be used by event writer implementations to easily generate a tree
topology from the data provided by this adapter, if isTree(ReadWriteParameterMap)
returns true
.
TreeTopologyExtractor
,
NoSetsTreeNetworkDataAdapter
Modifier and Type | Method and Description |
---|---|
ObjectListDataAdapter<EdgeEvent> |
getEdges(ReadWriteParameterMap parameters)
Returns the set of edges contained in this tree or network.
|
ObjectListDataAdapter<LinkedLabeledIDEvent> |
getNodeEdgeSets(ReadWriteParameterMap parameters)
Returns a list of node-and-edge-sets defined for the tree modeled by this instance.
|
ObjectListDataAdapter<NodeEvent> |
getNodes(ReadWriteParameterMap parameters)
Returns the set of nodes contained in this tree or network.
|
boolean |
isTree(ReadWriteParameterMap parameters)
Determines whether this instance represents a phylogenetic tree or a phylogenetic network.
|
getStartEvent
writeMetadata
boolean isTree(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requesttrue
if this instance represents a tree or false
otherwiseObjectListDataAdapter<NodeEvent> getNodes(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requestObjectListDataAdapter<EdgeEvent> getEdges(ReadWriteParameterMap parameters)
getEdges(ReadWriteParameterMap)
.parameters
- the parameter map of the calling writer that provides context information for the data requestObjectListDataAdapter<LinkedLabeledIDEvent> getNodeEdgeSets(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data request