public class StoreTreeNetworkDataAdapter extends StoreAnnotatedDataAdapter<LinkedLabeledIDEvent> implements TreeNetworkDataAdapter
Constructor and Description |
---|
StoreTreeNetworkDataAdapter(LabeledIDEvent startEvent,
boolean isTree,
java.util.List<JPhyloIOEvent> annotations) |
Modifier and Type | Method and Description |
---|---|
StoreObjectListDataAdapter<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.
|
StoreObjectListDataAdapter<NodeEvent> |
getNodes(ReadWriteParameterMap parameters)
Returns the set of nodes contained in this tree or network.
|
LabeledIDEvent |
getStartEvent(ReadWriteParameterMap parameters)
Returns the start event of this data element.
|
boolean |
isTree(ReadWriteParameterMap parameters)
Determines whether this instance represents a phylogenetic tree or a phylogenetic network.
|
getAnnotations, writeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeMetadata
public StoreTreeNetworkDataAdapter(LabeledIDEvent startEvent, boolean isTree, java.util.List<JPhyloIOEvent> annotations)
public LabeledIDEvent getStartEvent(ReadWriteParameterMap parameters)
ElementDataAdapter
getStartEvent
in interface ElementDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestpublic boolean isTree(ReadWriteParameterMap parameters)
TreeNetworkDataAdapter
isTree
in interface TreeNetworkDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requesttrue
if this instance represents a tree or false
otherwisepublic StoreObjectListDataAdapter<NodeEvent> getNodes(ReadWriteParameterMap parameters)
TreeNetworkDataAdapter
getNodes
in interface TreeNetworkDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestpublic StoreObjectListDataAdapter<EdgeEvent> getEdges(ReadWriteParameterMap parameters)
TreeNetworkDataAdapter
TreeNetworkDataAdapter.getEdges(ReadWriteParameterMap)
.getEdges
in interface TreeNetworkDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestpublic ObjectListDataAdapter<LinkedLabeledIDEvent> getNodeEdgeSets(ReadWriteParameterMap parameters)
TreeNetworkDataAdapter
getNodeEdgeSets
in interface TreeNetworkDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data request