public abstract class AbstractDataModelEventReader<M extends DataModel> extends java.lang.Object implements DataModelEventReader<M>
DataModel
.Constructor and Description |
---|
AbstractDataModelEventReader(AlignmentDataReader mainReader,
DataModelFactory<M> factory)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
MultiValuedMap<DataModelKey,M> |
getCompletedModels()
Returns the model objects that have been read from the underlying JPhyloIO event stream until now.
|
DataModelFactory<M> |
getFactory()
Returns the factory used to create new data models in this instance.
|
M |
getFirstCompletedModel(DataModelKey key) |
protected java.util.Map<DataModelKey,M> |
getLoadingModels() |
AlignmentDataReader |
getMainReader()
Returns the instance of the main reader (for reading alignment and data models) which
uses this data model reader.
|
public AbstractDataModelEventReader(AlignmentDataReader mainReader, DataModelFactory<M> factory)
mainReader
- the associates main reader instance forwarding to this readerfactory
- the factory to be used to create new data model instance during readingpublic AlignmentDataReader getMainReader()
DataModelEventReader
getMainReader
in interface DataModelEventReader<M extends DataModel>
public DataModelFactory<M> getFactory()
DataModelEventReader
getFactory
in interface DataModelEventReader<M extends DataModel>
null
)protected java.util.Map<DataModelKey,M> getLoadingModels()
public M getFirstCompletedModel(DataModelKey key)
public MultiValuedMap<DataModelKey,M> getCompletedModels()
DataModelEventReader
getCompletedModels
in interface DataModelEventReader<M extends DataModel>