40 #ifndef _MULTISEQINDIVIDUAL_H_
41 #define _MULTISEQINDIVIDUAL_H_
60 #include "../MultilocusGenotype.h"
61 #include "../GeneralExceptions.h"
85 std::map<std::string, VectorSequenceContainer*>
sequences_;
114 const unsigned short sex);
141 void setId(
const std::string
id);
148 std::string
getId()
const;
155 void setSex(
const unsigned short sex);
162 unsigned short getSex()
const;
197 void setCoord(
const double x,
const double y);
220 void setX(
const double x);
230 void setY(
const double y);
const Locality< double > * getLocality() const
Get the locality of the MultiSeqIndividual.
double getY() const
Get the Y coordinate of the MultiSeqIndividual.
Sequence * removeSequence(const std::string &id, const std::string &name)
Remove a named sequence from a named sequence set.
bool hasSequences() const
Tell if the MultiSeqIndividual has some sequences.
virtual ~MultiSeqIndividual()
Destroy an MultiSeqIndividual.
const MultilocusGenotype * getGenotype() const
Get the genotype.
const Point2D< double > * getCoord() const
Get the coordinates of the Induvidual.
void setLocality(const Locality< double > *locality)
Set the locality of the MultiSeqIndividual.
void setCoord(const Point2D< double > &coord)
Set the coodinates of the MultiSeqIndividual.
const Date * getDate() const
Get the date of the MultiSeqIndividual.
void setY(const double y)
Set the Y coordinate of th MultiSeqIndividual.
unsigned short getSex() const
Get the sex of the MultiSeqIndividual.
void setId(const std::string id)
Set the id of the MultiSeqIndividual.
MultiSeqIndividual()
Build a void new MultiSeqIndividual.
bool hasLocality() const
Tell if this MultiSeqIndividual has a locality.
void setDate(const Date &date)
Set the date of the MultiSeqIndividual.
const Sequence & getSequence(const std::string &id, const std::string &name) const
Get a named sequence from a named sequence set.
std::vector< std::string > getSequencesKeys() const
Get the sequence set ids.
std::string getId() const
Get the id of the MultiSeqIndividual.
void addSequence(const std::string &id, const Sequence &sequence)
Add a sequence in a named sequence set.
bool hasDate() const
Tell if this MultiSeqIndividual has a date.
Point2D< double > * coord_
const VectorSequenceContainer * getVectorSequenceContainer(const std::string &id) const
Get a pointer to the VectorSequenceContainer at a named locus.
bool hasCoord() const
Tell if this MultiSeqIndividual has coordinates.
std::map< std::string, VectorSequenceContainer * > sequences_
MultiSeqIndividual & operator=(const MultiSeqIndividual &ind)
The MultiSeqIndividual copy operator.
void addGenotype(const MultilocusGenotype &genotype)
Add a genotype.
double getX() const
Get the X coordinate of the MultiSeqIndividual.
void deleteSequence(const std::string &id, const std::string &name)
Delete a named sequence from a named sequence set.
void setSex(const unsigned short sex)
Set the sex of the MultiSeqIndividual.
void setX(const double x)
Set the X coordinate of the MultiSeqIndividual.
bool hasGenotype() const
Tell if the MultiSeqIndividual has a MultilocusGenotype.
MultilocusGenotype * genotype_
size_t getNumberOfSequences(const std::string &id) const
Get the number of sequences in a sequence set.
const Locality< double > * locality_
size_t getNumberOfSequenceSet() const
Count the number of sequece set.
The MultilocusGenotype class.